Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "api"

Index

Type aliases

RouteAuthenticator

RouteAuthenticator: (route: Route, curr: string[], params: any) => RouteMatch

A validation function to for authenticated routes. If this function determines that the user is not allowed to access this route, it should return nothing or a RouteMatch object for redirecting (e.g. to a login, home page or other non-protected route). If nothing is returned and no other routes can be matched, the router will eventually return the configure default fallback route.

Type declaration

Generated using TypeDoc