GitHub

DaffAuthRoutingConfig

An interface for providing @daffodil/auth/routing with necessary config values.

import { DaffAuthRoutingConfig } from '@daffodil/auth/routing'
interface DaffAuthRoutingConfig {
  resetPasswordTokenParam: string
  redirectUrlParam: string
  authCompleteRedirectPath: string
  logoutRedirectPath: string
  tokenExpirationRedirectPath: string
}

Properties

Name Type Description
resetPasswordTokenParam string

The name of the query param to which the reset password token will be set.

redirectUrlParam string

The name of the query param from which the redirect URL will be fetched. Defaults to redirect.

authCompleteRedirectPath string

The path to which the user will be redirected when they are logged in and the auth token is stored. Defaults to '/'.

logoutRedirectPath string

The path to which the user will be redirected when they are logged out. Defaults to '/'.

tokenExpirationRedirectPath string

The path to which the user will be redirected when their auth token is present but invalid. Defaults to '/'.