diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md index 0554259c8..b3624b440 100644 --- a/ARCHITECTURE.md +++ b/ARCHITECTURE.md @@ -10,7 +10,7 @@ With default config - [Code Flow with PKCE](https://auth0.com/docs/flows/authori ![external-api](./external-api.png) -## auth0-react (Access Token auth) +## auth0-react (Access Token Auth) ### Protecting a Client Side Rendered (CSR) Page ![react](./react.png) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a005e206..b54aee54f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,31 +1,135 @@ # Change Log +## [v2.0.0](https://github.com/auth0/nextjs-auth0/tree/v2.0.0) (2022-12-01) + +[Full Changelog](https://github.com/auth0/nextjs-auth0/compare/v1.9.2...v2.0.0) + +**⚠️ BREAKING CHANGES** + +- Refactor session lifecycle [\#787](https://github.com/auth0/nextjs-auth0/pull/787) ([adamjmcgrath](https://github.com/adamjmcgrath)) +- Rearrange exports for RSC and add experimental RSC route to example [\#913](https://github.com/auth0/nextjs-auth0/pull/913) ([adamjmcgrath](https://github.com/adamjmcgrath)) +- Improved callback errors [\#835](https://github.com/auth0/nextjs-auth0/pull/835) ([adamjmcgrath](https://github.com/adamjmcgrath)) +- Prevent mixing named exports and own instances [\#825](https://github.com/auth0/nextjs-auth0/pull/825) ([adamjmcgrath](https://github.com/adamjmcgrath)) +- Allow to override the user prop in server-side rendered pages [\#800](https://github.com/auth0/nextjs-auth0/pull/800) ([Widcket](https://github.com/Widcket)) +- Return 204 from /api/auth/me when logged out [\#791](https://github.com/auth0/nextjs-auth0/pull/791) ([Widcket](https://github.com/Widcket)) + + **Added** + +- Next.js Middlware support [\#815](https://github.com/auth0/nextjs-auth0/pull/815) ([adamjmcgrath](https://github.com/adamjmcgrath)) +- Add testing utility for generating session cookies [\#816](https://github.com/auth0/nextjs-auth0/pull/816) ([Widcket](https://github.com/Widcket)) +- Add updateUser [\#855](https://github.com/auth0/nextjs-auth0/pull/855) ([adamjmcgrath](https://github.com/adamjmcgrath)) +- Add support for configuring the built-in handlers [\#826](https://github.com/auth0/nextjs-auth0/pull/826) ([Widcket](https://github.com/Widcket)) +- Add support for configuring the default handlers [\#840](https://github.com/auth0/nextjs-auth0/pull/840) ([Widcket](https://github.com/Widcket)) +- Add logout options [\#877](https://github.com/auth0/nextjs-auth0/pull/877) ([adamjmcgrath](https://github.com/adamjmcgrath)) +- At error cause to AT error when it's from a failed grant [\#878](https://github.com/auth0/nextjs-auth0/pull/878) ([adamjmcgrath](https://github.com/adamjmcgrath)) +- Add option to not store ID Token in session [\#809](https://github.com/auth0/nextjs-auth0/pull/809) ([Widcket](https://github.com/Widcket)) +- Default error handler [\#823](https://github.com/auth0/nextjs-auth0/pull/823) ([adamjmcgrath](https://github.com/adamjmcgrath)) +- Allow response customization in afterCallback [\#838](https://github.com/auth0/nextjs-auth0/pull/838) ([adamjmcgrath](https://github.com/adamjmcgrath)) +- Improve API docs [\#796](https://github.com/auth0/nextjs-auth0/pull/796) ([Widcket](https://github.com/Widcket)) +- Improve errors [\#782](https://github.com/auth0/nextjs-auth0/pull/782) ([Widcket](https://github.com/Widcket)) + +See [V2 Migration Guide](./V2_MIGRATION_GUIDE.md) for full details. + +## [v2.0.0-beta.4](https://github.com/auth0/nextjs-auth0/tree/v2.0.0-beta.4) (2022-11-18) + +[Full Changelog](https://github.com/auth0/nextjs-auth0/compare/v2.0.0-beta.3...v2.0.0-beta.4) + +**⚠️ BREAKING CHANGES** + +- Rearrange exports for RSC and add experimental RSC route to example [\#913](https://github.com/auth0/nextjs-auth0/pull/913) ([adamjmcgrath](https://github.com/adamjmcgrath)) + +**Fixed** + +- WithMiddlewareAuthRequired should return 401 for /api routes [\#909](https://github.com/auth0/nextjs-auth0/pull/909) ([adamjmcgrath](https://github.com/adamjmcgrath)) + +## [v2.0.0-beta.3](https://github.com/auth0/nextjs-auth0/tree/v2.0.0-beta.3) (2022-11-08) + +[Full Changelog](https://github.com/auth0/nextjs-auth0/compare/v2.0.0-beta.2...v2.0.0-beta.3) + +**Fixed** + +- Fix edge cookie support for Next < 13.0.1 [\#900](https://github.com/auth0/nextjs-auth0/pull/900) ([adamjmcgrath](https://github.com/adamjmcgrath)) + +## [v2.0.0-beta.2](https://github.com/auth0/nextjs-auth0/tree/v2.0.0-beta.2) (2022-11-02) + +[Full Changelog](https://github.com/auth0/nextjs-auth0/compare/v2.0.0-beta.1...v2.0.0-beta.2) + +**Added** + +- At error cause to AT error when it's from a failed grant [\#878](https://github.com/auth0/nextjs-auth0/pull/878) ([adamjmcgrath](https://github.com/adamjmcgrath)) +- Add logout options [\#877](https://github.com/auth0/nextjs-auth0/pull/877) ([adamjmcgrath](https://github.com/adamjmcgrath)) + +**Fixed** + +- Fix for new req.cookie interface [\#894](https://github.com/auth0/nextjs-auth0/pull/894) ([adamjmcgrath](https://github.com/adamjmcgrath)) + +## [v2.0.0-beta.1](https://github.com/auth0/nextjs-auth0/tree/v2.0.0-beta.1) (2022-10-21) + +[Full Changelog](https://github.com/auth0/nextjs-auth0/compare/v2.0.0-beta.0...v2.0.0-beta.1) + +**Fixed** + +- status getter is not enumerable so needs to be added to NextResponse [\#875](https://github.com/auth0/nextjs-auth0/pull/875) ([adamjmcgrath](https://github.com/adamjmcgrath)) + +## [v2.0.0-beta.0](https://github.com/auth0/nextjs-auth0/tree/v2.0.0-beta.0) (2022-10-11) + +[Full Changelog](https://github.com/auth0/nextjs-auth0/compare/v1.9.1...v2.0.0-beta.0) + +- Change updateUser to updateSession [\#855](https://github.com/auth0/nextjs-auth0/pull/855) ([adamjmcgrath](https://github.com/adamjmcgrath)) +- Add support for configuring the default handlers [\#840](https://github.com/auth0/nextjs-auth0/pull/840) ([Widcket](https://github.com/Widcket)) +- Allow response customization in afterCallback [\#838](https://github.com/auth0/nextjs-auth0/pull/838) ([adamjmcgrath](https://github.com/adamjmcgrath)) +- Improved callback errors [\#835](https://github.com/auth0/nextjs-auth0/pull/835) ([adamjmcgrath](https://github.com/adamjmcgrath)) +- Add support for configuring the built-in handlers [\#826](https://github.com/auth0/nextjs-auth0/pull/826) ([Widcket](https://github.com/Widcket)) +- Prevent mixing named exports and own instances [\#825](https://github.com/auth0/nextjs-auth0/pull/825) ([adamjmcgrath](https://github.com/adamjmcgrath)) +- Default error handler [\#823](https://github.com/auth0/nextjs-auth0/pull/823) ([adamjmcgrath](https://github.com/adamjmcgrath)) +- Fix intermittent build issues [\#818](https://github.com/auth0/nextjs-auth0/pull/818) ([adamjmcgrath](https://github.com/adamjmcgrath)) +- Add testing utility for generating session cookies [\#816](https://github.com/auth0/nextjs-auth0/pull/816) ([Widcket](https://github.com/Widcket)) +- Next.js Middlware support [\#815](https://github.com/auth0/nextjs-auth0/pull/815) ([adamjmcgrath](https://github.com/adamjmcgrath)) +- Fix v1 cookie tests [\#810](https://github.com/auth0/nextjs-auth0/pull/810) ([adamjmcgrath](https://github.com/adamjmcgrath)) +- Do not store the ID token by default [\#809](https://github.com/auth0/nextjs-auth0/pull/809) ([Widcket](https://github.com/Widcket)) +- Allow to override the user prop in server-side rendered pages [\#800](https://github.com/auth0/nextjs-auth0/pull/800) ([Widcket](https://github.com/Widcket)) +- Improve API docs [\#796](https://github.com/auth0/nextjs-auth0/pull/796) ([Widcket](https://github.com/Widcket)) +- Return 204 from /api/auth/me when logged out [\#791](https://github.com/auth0/nextjs-auth0/pull/791) ([Widcket](https://github.com/Widcket)) +- Refactor session lifecycle [\#787](https://github.com/auth0/nextjs-auth0/pull/787) ([adamjmcgrath](https://github.com/adamjmcgrath)) +- Improve errors [\#782](https://github.com/auth0/nextjs-auth0/pull/782) ([Widcket](https://github.com/Widcket)) + +See [V2 Migration Guide](./V2_MIGRATION_GUIDE.md) for full details. + ## [v1.9.2](https://github.com/auth0/nextjs-auth0/tree/v1.9.2) (2022-10-07) + [Full Changelog](https://github.com/auth0/nextjs-auth0/compare/v1.9.1...v1.9.2) **Added** + - Fix updates to session not reflected in async `getServerSideProps` [\#843](https://github.com/auth0/nextjs-auth0/pull/843) ([adamjmcgrath](https://github.com/adamjmcgrath)) ## [v1.9.1](https://github.com/auth0/nextjs-auth0/tree/v1.9.1) (2022-06-16) + [Full Changelog](https://github.com/auth0/nextjs-auth0/compare/v1.9.0...v1.9.1) **Fixed** + - Add Props and Query to GetServerSidePropsWrapper type [\#731](https://github.com/auth0/nextjs-auth0/pull/731) ([adamjmcgrath](https://github.com/adamjmcgrath)) ## [v1.9.0](https://github.com/auth0/nextjs-auth0/tree/v1.9.0) (2022-05-20) + [Full Changelog](https://github.com/auth0/nextjs-auth0/compare/v1.8.0...v1.9.0) **Added** + - [SDK-3332] Constrain session lifecycle to `withPageAuthrequired` to avoid Next warning [\#664](https://github.com/auth0/nextjs-auth0/pull/664) ([adamjmcgrath](https://github.com/adamjmcgrath)) ## [v1.8.0](https://github.com/auth0/nextjs-auth0/tree/v1.8.0) (2022-05-04) + [Full Changelog](https://github.com/auth0/nextjs-auth0/compare/v1.7.0...v1.8.0) **Added** + - Add some useful props to the callback error [\#625](https://github.com/auth0/nextjs-auth0/pull/625) ([adamjmcgrath](https://github.com/adamjmcgrath)) - Update to next 12 [\#612](https://github.com/auth0/nextjs-auth0/pull/612) ([adamjmcgrath](https://github.com/adamjmcgrath)) **Fixed** + - Fix Fast Refresh for WithPageAuthRequired [\#653](https://github.com/auth0/nextjs-auth0/pull/653) ([adamjmcgrath](https://github.com/adamjmcgrath)) - Handle request errors on `useUser` hook [SDK-3227] [\#639](https://github.com/auth0/nextjs-auth0/pull/639) ([Widcket](https://github.com/Widcket)) - Add default to PageRoute type parameter [\#632](https://github.com/auth0/nextjs-auth0/pull/632) ([grantbdev](https://github.com/grantbdev)) @@ -34,40 +138,51 @@ - Fix types in client-side `withPageAuthRequired` [\#574](https://github.com/auth0/nextjs-auth0/pull/574) ([slaypni](https://github.com/slaypni)) ## [v1.7.0](https://github.com/auth0/nextjs-auth0/tree/v1.7.0) (2022-01-06) + [Full Changelog](https://github.com/auth0/nextjs-auth0/compare/v1.6.2...v1.7.0) **Added** + - Include message body in 302 responses [\#564](https://github.com/auth0/nextjs-auth0/pull/564) ([michielvangendt](https://github.com/michielvangendt)) **Fixed** + - Honor configured sameSite in transient cookies so you can login to iframe using 'none' [\#571](https://github.com/auth0/nextjs-auth0/pull/571) ([adamjmcgrath](https://github.com/adamjmcgrath)) - Cookies with samesite=none must have the secure attr set [\#570](https://github.com/auth0/nextjs-auth0/pull/570) ([adamjmcgrath](https://github.com/adamjmcgrath)) - Improve types in server-side withPageAuthRequired [\#554](https://github.com/auth0/nextjs-auth0/pull/554) ([misoton665](https://github.com/misoton665)) ## [v1.6.2](https://github.com/auth0/nextjs-auth0/tree/v1.6.2) (2021-12-16) + [Full Changelog](https://github.com/auth0/nextjs-auth0/compare/v1.6.1...v1.6.2) **Fixed** + - Fix issue where error reporting wrong instanceof [\#543](https://github.com/auth0/nextjs-auth0/pull/543) ([adamjmcgrath](https://github.com/adamjmcgrath)) **Security** + - Enforce configured host on user supplied returnTo [\#557](https://github.com/auth0/nextjs-auth0/pull/557) ([adamjmcgrath](https://github.com/adamjmcgrath)) ## [v1.6.1](https://github.com/auth0/nextjs-auth0/tree/v1.6.1) (2021-10-13) + [Full Changelog](https://github.com/auth0/nextjs-auth0/compare/v1.6.0...v1.6.1) **Fixed** + - [Snyk] Upgrade openid-client from 4.8.0 to 4.9.0 [\#518](https://github.com/auth0/nextjs-auth0/pull/518) ([snyk-bot](https://github.com/snyk-bot)) ## [v1.6.0](https://github.com/auth0/nextjs-auth0/tree/v1.6.0) (2021-10-11) + [Full Changelog](https://github.com/auth0/nextjs-auth0/compare/v1.5.0...v1.6.0) **Added** + - [SDK-2818] Export error classes [\#508](https://github.com/auth0/nextjs-auth0/pull/508) ([adamjmcgrath](https://github.com/adamjmcgrath)) - [SDK-2529] Add ability to pass custom params to refresh grant and code exchange [\#507](https://github.com/auth0/nextjs-auth0/pull/507) ([adamjmcgrath](https://github.com/adamjmcgrath)) - [SDK-2813] Add afterRefresh hook [\#506](https://github.com/auth0/nextjs-auth0/pull/506) ([adamjmcgrath](https://github.com/adamjmcgrath)) **Fixed** + - Fix types in server-side `withPageAuthRequired` [\#512](https://github.com/auth0/nextjs-auth0/pull/512) ([Widcket](https://github.com/Widcket)) ## [1.5.0](https://github.com/auth0/nextjs-auth0/tree/v1.5.0) (2021-07-14) diff --git a/EXAMPLES.md b/EXAMPLES.md index 2b640805f..e0b3d96a9 100644 --- a/EXAMPLES.md +++ b/EXAMPLES.md @@ -6,6 +6,7 @@ - [Protecting a Server-Side Rendered (SSR) Page](#protecting-a-server-side-rendered-ssr-page) - [Protecting a Client-Side Rendered (CSR) Page](#protecting-a-client-side-rendered-csr-page) - [Protect an API Route](#protect-an-api-route) +- [Protecting pages with Middleware](#protecting-pages-with-middleware) - [Access an External API from an API Route](#access-an-external-api-from-an-api-route) - [Create your own instance of the SDK](#create-your-own-instance-of-the-sdk) - [Add a signup handler](#add-a-signup-handler) @@ -25,7 +26,7 @@ AUTH0_CLIENT_ID='CLIENT_ID' AUTH0_CLIENT_SECRET='CLIENT_SECRET' ``` -Create a [Dynamic API Route handler](https://nextjs.org/docs/api-routes/dynamic-api-routes) at `/pages/api/auth/[...auth0].js`. +Create a [dynamic API route handler](https://nextjs.org/docs/api-routes/dynamic-api-routes) at `/pages/api/auth/[...auth0].js`. ```js import { handleAuth } from '@auth0/nextjs-auth0'; @@ -40,7 +41,7 @@ Wrap your `pages/_app.jsx` component in the `UserProvider` component. ```jsx // pages/_app.jsx import React from 'react'; -import { UserProvider } from '@auth0/nextjs-auth0'; +import { UserProvider } from '@auth0/nextjs-auth0/client'; export default function App({ Component, pageProps }) { // You can optionally pass the `user` prop from pages that require server-side @@ -59,7 +60,7 @@ Check the user's authentication state and log them in or out from the front end ```jsx // pages/index.jsx -import { useUser } from '@auth0/nextjs-auth0'; +import { useUser } from '@auth0/nextjs-auth0/client'; export default () => { const { user, error, isLoading } = useUser(); @@ -91,21 +92,27 @@ import { myCustomLogger, myCustomErrorReporter } from '../utils'; export default handleAuth({ async login(req, res) { - try { - // Add your own custom logger - myCustomLogger('Logging in'); - // Pass custom parameters to login - await handleLogin(req, res, { - authorizationParams: { - custom_param: 'custom' - }, - returnTo: '/custom-page' - }); - } catch (error) { - // Add your own custom error handling - myCustomErrorReporter(error); - res.status(error.status || 400).end(error.message); + // Add your own custom logger + myCustomLogger('Logging in'); + // Pass custom parameters to login + await handleLogin(req, res, { + authorizationParams: { + custom_param: 'custom' + }, + returnTo: '/custom-page' + }); + }, + invite: loginHandler({ + authorizationParams: (req) => { + invitation: req.query.invitation; } + }), + 'login-with-google': loginHandler({ authorizationParams: { connection: 'google' } }), + 'refresh-profile': profileHandler({ refetch: true }), + onError(req, res, error) { + // Add your own custom error handling + myCustomErrorReporter(error); + res.status(error.status || 400).end(); } }); ``` @@ -161,7 +168,7 @@ Requests to `/pages/profile` without a valid session cookie will be redirected t ```jsx // pages/profile.js -import { withPageAuthRequired } from '@auth0/nextjs-auth0'; +import { withPageAuthRequired } from '@auth0/nextjs-auth0/client'; export default withPageAuthRequired(function Profile({ user }) { return
Hello {user.name}
; @@ -189,7 +196,7 @@ Then you can access your API from the frontend with a valid session cookie. ```jsx // pages/products import useSWR from 'swr'; -import { withPageAuthRequired } from '@auth0/nextjs-auth0'; +import { withPageAuthRequired } from '@auth0/nextjs-auth0/client'; const fetcher = async (uri) => { const response = await fetch(uri); @@ -207,32 +214,88 @@ export default withPageAuthRequired(function Products() { See a running example in the kitchen-sink example app, the [protected API route](./examples/kitchen-sink-example/pages/api/shows.ts) and the [frontend code to access the protected API](./examples/kitchen-sink-example/pages/shows.tsx). +## Protecting pages with Middleware + +Protect your pages with Next.js Middleware. + +To protect all your routes: + +```js +// middleware.js +import { withMiddlewareAuthRequired } from '@auth0/nextjs-auth0/edge'; + +export default withMiddlewareAuthRequired(); +``` + +To protect specific routes: + +```js +// middleware.js +import { withMiddlewareAuthRequired } from '@auth0/nextjs-auth0/edge'; + +export default withMiddlewareAuthRequired(); + +export const config = { + matcher: '/about/:path*' +}; +``` + +For more info see: https://nextjs.org/docs/advanced-features/middleware#matching-paths + +To run custom middleware for authenticated users: + +```js +// middleware.js +import { withMiddlewareAuthRequired, getSession } from '@auth0/nextjs-auth0/edge'; + +export default withMiddlewareAuthRequired(async function middleware(req) { + const res = NextResponse.next(); + const user = await getSession(req, res); + res.cookies.set('hl', user.language); + return res; +}); +``` + +For using middleware with your own instance of the SDK: + +```js +// middleware.js +import { + withMiddlewareAuthRequired, + getSession, + initAuth0 // note the edge runtime specific `initAuth0` +} from '@auth0/nextjs-auth0/edge'; + +const auth0 = initAuth0({ ... }); + +export default auth0.withMiddlewareAuthRequired(async function middleware(req) { + const res = NextResponse.next(); + const user = await auth0.getSession(req, res); + res.cookies.set('hl', user.language); + return res; +}); +``` + ## Access an External API from an API Route -Get an Access Token by providing your API's audience and scopes. You can pass them directly to the `handlelogin` method, or use environment variables instead. +Get an access token by providing your API's audience and scopes. You can pass them directly to the `handlelogin` method, or use environment variables instead. ```js // pages/api/auth/[...auth0].js import { handleAuth, handleLogin } from '@auth0/nextjs-auth0'; export default handleAuth({ - async login(req, res) { - try { - await handleLogin(req, res, { - authorizationParams: { - audience: 'https://api.example.com/products', // or AUTH0_AUDIENCE - // Add the `offline_access` scope to also get a Refresh Token - scope: 'openid profile email read:products' // or AUTH0_SCOPE - } - }); - } catch (error) { - res.status(error.status || 400).end(error.message); + login: handleLogin({ + authorizationParams: { + audience: 'https://api.example.com/products', // or AUTH0_AUDIENCE + // Add the `offline_access` scope to also get a Refresh Token + scope: 'openid profile email read:products' // or AUTH0_SCOPE } - } + }) }); ``` -Use the Session to protect your API Route and the Access Token to protect your external API. +Use the session to protect your API route and the access token to protect your external API. The API route serves as a proxy between your front end and the external API. ```js @@ -240,7 +303,7 @@ The API route serves as a proxy between your front end and the external API. import { getAccessToken, withApiAuthRequired } from '@auth0/nextjs-auth0'; export default withApiAuthRequired(async function products(req, res) { - // If your Access Token is expired and you have a Refresh Token + // If your access token is expired and you have a refresh token // `getAccessToken` will fetch you a new one using the `refresh_token` grant const { accessToken } = await getAccessToken(req, res, { scopes: ['read:products'] @@ -265,11 +328,11 @@ See a running example of the [API route acting as a proxy to an External API](./ ## Create your own instance of the SDK -When you use the named exports, the SDK creates an instance of the SDK for you and configures it with the provided environmental variables, eg: +When you use the named exports, the SDK creates an instance of the SDK for you and configures it with the provided environment variables. ```js // These named exports create and manage their own instance of the SDK configured with -// the provided AUTH0_* environment variables +// the provided `AUTH0_*` environment variables import { handleAuth, handleLogin, @@ -288,7 +351,7 @@ However, there are various reasons why you might want to create and manage an in - You may want to create your own instance for testing - You may not want to use environment variables for the configuration of secrets (eg using CredStash or AWS's Key Management Service) -In this case you can use the [initAuth0](https://auth0.github.io/nextjs-auth0/modules/instance.html) method to create an instance, eg: +In this case you can use the [initAuth0](https://auth0.github.io/nextjs-auth0/modules/instance.html) method to create an instance. ```js // utils/auth0.js @@ -303,7 +366,7 @@ export default initAuth0({ }); ``` -Now rather than using the named exports, you can use the instance methods directly, eg: +Now rather than using the named exports, you can use the instance methods directly. ```js // pages/api/auth/[...auth0].js @@ -314,7 +377,7 @@ export default auth0.handleAuth(); ``` > Note: You should not use the instance methods in combination with the named exports, -> otherwise you will be creating multiple instances of the SDK, eg: +> otherwise you will be creating multiple instances of the SDK. For example: ```js // DON'T Mix instance methods and named exports @@ -325,7 +388,7 @@ export default auth0.handleAuth({ // <= instance method async login(req, res) { try { - // `auth0.handleAuth` and `handleLogin` will be using separate instances. + // `auth0.handleAuth` and `handleLogin` will be using separate instances // You should use `auth0.handleLogin` instead await handleLogin(req, res); // <= named export } catch (error) { @@ -342,43 +405,18 @@ Pass a custom authorize parameter to the login handler in a custom route. If you are using the [New Universal Login Experience](https://auth0.com/docs/universal-login/new-experience) you can pass the `screen_hint` parameter. ```js -// api/signup.js -import { handleLogin } from '@auth0/nextjs-auth0'; - -export default async function signup(req, res) { - try { - await handleLogin(req, res, { - authorizationParams: { - // Note that this can be combined with prompt=login , which indicates if - // you want to always show the authentication page or you want to skip - // if there’s an existing session. - screen_hint: 'signup' - } - }); - } catch (error) { - res.status(error.status || 400).end(error.message); - } -} -``` - -If you are using the [Classic Universal Login Experience](https://auth0.com/docs/universal-login/classic-experience) you can use any custom authorization -parameter, eg `{ authorizationParams: { action: 'signup' } }` then customize the -[login template](https://manage.auth0.com/#/login_page) to look for this parameter -and set the `initialScreen` option of the `Auth0Lock` constructor. +// pages/api/auth/[...auth0].js +import { handleAuth, handleLogin } from '@auth0/nextjs-auth0'; -```js -var isSignup = config.extraParams && config.extraParams.action === 'signup'; -var lock = new Auth0Lock(config.clientID, config.auth0Domain, { - // [...] all other Lock options - // use the value obtained to decide the first screen - initialScreen: isSignup ? 'signUp' : 'login' +export default handleAuth({ + signup: handleLogin({ authorizationParams: { screen_hint: 'signup' } }) }); ``` Users can then sign up using the signup handler. ```html -Sign up +Sign up ``` ## Use with Base Path and Internationalized Routing diff --git a/FAQ.md b/FAQ.md index fd931db20..fb537f7bb 100644 --- a/FAQ.md +++ b/FAQ.md @@ -1,74 +1,27 @@ # Frequently Asked Questions -1. [Why do I get a `checks.state argument is missing` error when logging in from different tabs?](#1-why-do-i-get-a-checks.state-argument-is-missing-error-if-i-try-to-log-in-from-different-tabs) +1. [Why do I get a `state mismatch` error when logging in from different tabs?](#1-why-do-i-get-a-state-mismatch-error-if-i-try-to-log-in-from-different-tabs) 2. [How can I reduce the cookie size?](#2-how-can-i-reduce-the-cookie-size) -3. [I'm getting the warning/error `You should not access 'res' after getServerSideProps resolves.`](#3-i-m-getting-the-warning-error--you-should-not-access--res--after-getserversideprops-resolves.) -## 1. Why do I get a `checks.state argument is missing` error if I try to log in from different tabs? +## 1. Why do I get a `state mismatch` error if I try to log in from different tabs? -Every time you initiate login, the SDK stores in cookies some transient state (`nonce`, `state`, `code_verifier`) necessary to verify the callback request from Auth0. Initiating login concurrently from different tabs will result in that state being overwritten in each subsequent tab. Once the login is completed in some tab, the SDK will compare the state in the callback with the state stored in the cookies. As the cookies were overwritten, the values will not match (except for the tab that initiated login the last) and the SDK will return the `checks.state argument is missing` error. +Every time you initiate login, the SDK stores in cookies some transient state (`nonce`, `state`, `code_verifier`) necessary to verify the callback request from Auth0. Initiating login concurrently from different tabs will result in that state being overwritten in each subsequent tab. Once the login is completed in some tab, the SDK will compare the state in the callback with the state stored in the cookies. As the cookies were overwritten, the values will not match (except for the tab that initiated login the last) and the SDK will return the `state mismatch` error. -Eg: +For example: -1. Open Tab 1 to login: stores some state in cookies. -2. Open Tab 2 to login: stores its own state overwritting Tab 1 state. +1. Open Tab 1 to log in: stores some state in cookies. +2. Open Tab 2 to log in: stores its own state overwritting Tab 1 state. 3. Complete login on Tab 1: SDK finds Tab 2 state on the cookies and returns error. -**You should handle the error and prompt the user to login again.** As they will have an active SSO session, they will not be asked to enter their credentials again and will be redirected back to your application. +**You should handle the error and prompt the user to log in again.** As they will have an active SSO session, they will not be asked to enter their credentials again and will be redirected back to your application. ## 2. How can I reduce the cookie size? -The SDK stores the session data in cookies. Since browsers reject cookies larger than 4 KB, the SDK breaks up lengthier sessions into multiple cookies. However, by default Node.js [limits the header size](https://nodejs.org/en/blog/vulnerability/november-2018-security-releases/#denial-of-service-with-large-http-headers-cve-2018-12121) to 8 KB. +The SDK stores the session data in cookies. Since browsers reject cookies larger than 4 KB, the SDK breaks up lengthier sessions into multiple cookies. However, by default Node.js limits the header size to 16 KB (Node.js version <14 has a max size of 8kb). If the session cookies are pushing the header size over the limit, **you have two options**: - Use `-max-http-header-size` to increase Node's header size. - Remove unused data from the session cookies. -For the latter, you can add an [afterCallback](https://auth0.github.io/nextjs-auth0/modules/handlers_callback.html#aftercallback) hook to remove the ID Token and/or unused claims from the user profile: - -```js -// pages/api/auth/[...auth0].js -import { handleAuth, handleCallback } from '@auth0/nextjs-auth0'; - -const afterCallback = (req, res, session, state) => { - delete session.idToken; - return session; -}; - -export default handleAuth({ - async callback(req, res) { - try { - await handleCallback(req, res, { afterCallback }); - } catch (error) { - res.status(error.status || 500).end(error.message); - } - } -}); -``` - -> Note: if you are using refresh tokens you must also remove the item from the Session after it is refreshed using the [afterRefresh](https://auth0.github.io/nextjs-auth0/interfaces/session_get_access_token.accesstokenrequest.html#afterrefresh) hook (see also the [afterRefetch](https://auth0.github.io/nextjs-auth0/modules/handlers_profile.html#profileoptions) hook if you're removing claims from the user object). - -```js -// pages/api/my-handler.js -import { getAccessToken } from '@auth0/nextjs-auth0'; - -const afterRefresh = (req, res, session) => { - delete session.idToken; - return session; -}; - -export default async function MyHandler(req, res) { - const accessToken = await getAccessToken(req, res, { afterRefresh }); -} -``` - -> Note: support for custom session stores [is in our roadmap](https://github.com/auth0/nextjs-auth0/issues/279). - -## 3. I'm getting the warning/error `You should not access 'res' after getServerSideProps resolves.` - -Because this SDK provides a rolling session by default, it writes to the header at the end of every request. This can cause the above warning when you use `getSession` or `getAccessToken` in >=Next.js 12, and an error if your `props` are defined as a `Promise`. - -Wrapping your `getServerSideProps` in `getServerSidePropsWrapper` will fix this because it will constrain the lifecycle of the session to the life of `getServerSideProps`. - -> Note: you should not use this if you are already using `withPageAuthenticationRequired` since this should already constrain the lifecycle of the session. +For the latter, you can add an [afterCallback](https://auth0.github.io/nextjs-auth0/modules/handlers_callback.html#aftercallback) hook to remove unused claims from the user profile. Or set the [storeIDToken](https://auth0.github.io/nextjs-auth0/interfaces/config.sessionconfig.html#storeidtoken) config to `false`, if you do not require the ID Token. diff --git a/README.md b/README.md index 7b82ff7d4..dcb906783 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ The Auth0 Next.js SDK is a library for implementing user authentication in Next.js applications. +> :warning: Please be aware that v2 is currently in [**Beta**](https://auth0.com/docs/troubleshoot/product-lifecycle/product-release-stages). Whilst we encourage you to test the update within your applications, we do no recommend using this version in production yet. Please follow the [migration guide](./V2_MIGRATION_GUIDE.md) when updating your application. + ![Release](https://img.shields.io/npm/v/@auth0/nextjs-auth0) [![Coverage](https://img.shields.io/badge/dynamic/json?color=brightgreen&label=coverage&query=jest.coverageThreshold.global.lines&suffix=%25&url=https%3A%2F%2Fraw.githubusercontent.com%2Fauth0%2Fnextjs-auth0%2Fmain%2Fpackage.json)](https://github.com/auth0/nextjs-auth0/blob/main/package.json#L147) ![Downloads](https://img.shields.io/npm/dw/@auth0/nextjs-auth0) @@ -33,7 +35,7 @@ npm install @auth0/nextjs-auth0 This library supports the following tooling versions: -- Node.js: `^10.13.0 || >=12.0.0` +- Node.js: 12 LTS and newer LTS releases are supported. - Next.js: `>=10` ### Auth0 Configuration @@ -81,7 +83,7 @@ node -e "console.log(crypto.randomBytes(32).toString('hex'))" You can see a full list of Auth0 configuration options in the ["Configuration properties"](https://auth0.github.io/nextjs-auth0/modules/config.html#configuration-properties) section of the "Module config" document. -> For more details about loading environmental variables in Next.js, visit the ["Environment Variables"](https://nextjs.org/docs/basic-features/environment-variables) document. +> For more details about loading environment variables in Next.js, visit the ["Environment Variables"](https://nextjs.org/docs/basic-features/environment-variables) document. #### Add the Dynamic API Route @@ -101,12 +103,9 @@ export default handleAuth(); Executing `handleAuth()` creates the following route handlers under the hood that perform different parts of the authentication flow: -- `/api/auth/login`: Your Next.js application redirects users to your Identity Provider for them to log in (you can optionally pass a `returnTo` parameter to return to a custom relative URL after login, eg `/api/auth/login?returnTo=/profile`). - -- `/api/auth/callback`: Your Identity Provider redirects users to this route after they successfully log in. - +- `/api/auth/login`: Your Next.js application redirects users to your identity provider for them to log in (you can optionally pass a `returnTo` parameter to return to a custom relative URL after login, for example `/api/auth/login?returnTo=/profile`). +- `/api/auth/callback`: Your identity provider redirects users to this route after they successfully log in. - `/api/auth/logout`: Your Next.js application logs out the user. - - `/api/auth/me`: You can fetch user profile information in JSON format. #### Add the UserProvider to Custom App @@ -116,7 +115,7 @@ Wrap your `pages/_app.js` component with the `UserProvider` component: ```jsx // pages/_app.js import React from 'react'; -import { UserProvider } from '@auth0/nextjs-auth0'; +import { UserProvider } from '@auth0/nextjs-auth0/client'; export default function App({ Component, pageProps }) { return ( @@ -133,7 +132,7 @@ You can now determine if a user is authenticated by checking that the `user` obj ```jsx // pages/index.js -import { useUser } from '@auth0/nextjs-auth0'; +import { useUser } from '@auth0/nextjs-auth0/client'; export default function Index() { const { user, error, isLoading } = useUser(); @@ -161,10 +160,12 @@ For other comprehensive examples, see the [EXAMPLES.md](https://github.com/auth0 ## API Reference -- [Configuration Options](https://auth0.github.io/nextjs-auth0/modules/config.html) +### Server (for Node.js) -**Server-side methods**: +`import * from @auth0/nextjs-auth0` +- [Configuration Options and Environment variables](https://auth0.github.io/nextjs-auth0/modules/config.html) +- [initAuth0](https://auth0.github.io/nextjs-auth0/modules/index.html#initauth0) - [handleAuth](https://auth0.github.io/nextjs-auth0/modules/handlers_auth.html) - [handleLogin](https://auth0.github.io/nextjs-auth0/modules/handlers_login.html#handlelogin) - [handleCallback](https://auth0.github.io/nextjs-auth0/modules/handlers_callback.html) @@ -172,18 +173,133 @@ For other comprehensive examples, see the [EXAMPLES.md](https://github.com/auth0 - [handleProfile](https://auth0.github.io/nextjs-auth0/modules/handlers_profile.html) - [withApiAuthRequired](https://auth0.github.io/nextjs-auth0/modules/helpers_with_api_auth_required.html) - [withPageAuthRequired](https://auth0.github.io/nextjs-auth0/modules/helpers_with_page_auth_required.html#withpageauthrequired) -- [getServerSidePropsWrapper](https://auth0.github.io/nextjs-auth0/modules/helpers_get_server_side_props_wrapper.html) - [getSession](https://auth0.github.io/nextjs-auth0/modules/session_get_session.html) +- [updateSession](https://auth0.github.io/nextjs-auth0/modules/session_update_session.html) - [getAccessToken](https://auth0.github.io/nextjs-auth0/modules/session_get_access_token.html) -- [initAuth0](https://auth0.github.io/nextjs-auth0/modules/instance.html) -**Client-side methods/components**: +### Edge (for Middleware and the Edge runtime) + +`import * from @auth0/nextjs-auth0/edge` + +- [Configuration Options and Environment variables](https://auth0.github.io/nextjs-auth0/modules/config.html) +- [initAuth0](https://auth0.github.io/nextjs-auth0/modules/edge.html#initauth0-1) +- [withMiddlewareAuthRequired](https://auth0.github.io/nextjs-auth0/modules/helpers_with_middleware_auth_required.html) +- [getSession](https://auth0.github.io/nextjs-auth0/modules/edge.html#getsession-1) + +### Client (for the Browser) + +`import * from @auth0/nextjs-auth0/client` + +- [UserProvider](https://auth0.github.io/nextjs-auth0/modules/client_use_user.html#userprovider) +- [useUser](https://auth0.github.io/nextjs-auth0/modules/client_use_user.html) +- [withPageAuthRequired](https://auth0.github.io/nextjs-auth0/modules/client_with_page_auth_required.html) + +### Testing helpers + +`import * from @auth0/nextjs-auth0/testing` + +- [generateSessionCookie](https://auth0.github.io/nextjs-auth0/modules/helpers_testing.html#generatesessioncookie) + +Visit the auto-generated [API Docs](https://auth0.github.io/nextjs-auth0/) for more details + +### Cookies and Security + +All cookies will be set to `HttpOnly, SameSite=Lax` and will be set to `Secure` if the application's `AUTH0_BASE_URL` is `https`. + +The `HttpOnly` setting will make sure that client-side JavaScript is unable to access the cookie to reduce the attack surface of [XSS attacks](https://auth0.com/blog/developers-guide-to-common-vulnerabilities-and-how-to-prevent-them/#Cross-Site-Scripting--XSS-). + +The `SameSite=Lax` setting will help mitigate CSRF attacks. Learn more about SameSite by reading the ["Upcoming Browser Behavior Changes: What Developers Need to Know"](https://auth0.com/blog/browser-behavior-changes-what-developers-need-to-know/) blog post. + +### Caching and Security + +Many hosting providers will offer to cache your content at the edge in order to serve data to your users as fast as possible. For example Vercel will [cache your content on the Vercel Edge Network](https://vercel.com/docs/concepts/edge-network/caching) for all static content and Serverless Functions if you provide the necessary caching headers on your response. + +It's generally a bad idea to cache any response that requires authentication, even if the response's content appears safe to cache there may be other data in the response that isn't. + +This SDK offers a rolling session by default, which means that any response that reads the session will have a `Set-Cookie` header to update the cookie's expiry. Vercel and potentially other hosting providers include the `Set-Cookie` header in the cached response, so even if you think the response's content can be cached publicly, the responses `Set-Cookie` header cannot. + +Check your hosting provider's caching rules, but in general you should **never** cache responses that either require authentication or even touch the session to check authentication (eg when using `withApiAuthRequired`, `withPageAuthRequired` or even just `getSession` or `getAccessToken`). + +### Error Handling and Security + +Errors that come from Auth0 in the `redirect_uri` callback may contain reflected user input via the OpenID Connect `error` and `error_description` query parameter. Because of this, we do some [basic escaping](https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html#rule-1-html-encode-before-inserting-untrusted-data-into-html-element-content) on the `message`, `error` and `error_description` properties of the `IdentityProviderError`. + +But, if you write your own error handler, you should **not** render the error `message`, or `error` and `error_description` properties without using a templating engine that will properly escape them for other HTML contexts first. + +### Base Path and Internationalized Routing + +With Next.js you can deploy a Next.js application under a sub-path of a domain using [Base Path](https://nextjs.org/docs/api-reference/next.config.js/basepath) and serve internationalized (i18n) routes using [Internationalized Routing](https://nextjs.org/docs/advanced-features/i18n-routing). + +If you use these features the urls of your application will change and so the urls to the nextjs-auth0 routes will change. To accommodate this there are various places in the SDK that you can customise the url. + +For example, if `basePath: '/foo'` you should prepend this to the `loginUrl` and `profileUrl` specified in your `Auth0Provider`: + +```jsx +// _app.jsx +function App({ Component, pageProps }) { + return ( + + + + ); +} +``` + +Also, any links to login or logout should include the `basePath`: + +```html +Login
+Logout +``` + +You should configure the [baseUrl](https://auth0.github.io/nextjs-auth0/interfaces/config.baseconfig.html#baseurl) (or the `AUTH0_BASE_URL` environment variable). For example: + +```shell +# .env.local +AUTH0_BASE_URL=http://localhost:3000/foo +``` + +For any pages that are protected with the Server Side [withPageAuthRequired](https://auth0.github.io/nextjs-auth0/modules/helpers_with_page_auth_required.html#withpageauthrequired) you should update the `returnTo` parameter depending on the `basePath` and `locale` if necessary. + +```js +// ./pages/my-ssr-page.jsx +export default MySsrPage = () => <>; + +const getFullReturnTo = (ctx) => { + // TODO: implement getFullReturnTo based on the ctx.resolvedUrl, ctx.locale + // and your next.config.js's basePath and i18n settings. + return '/foo/en-US/my-ssr-page'; +}; + +export const getServerSideProps = (ctx) => { + const returnTo = getFullReturnTo(ctx.req); + return withPageAuthRequired({ returnTo })(ctx); +}; +``` + +### Comparison with the Auth0 React SDK + +We also provide an Auth0 React SDK, [auth0-react](https://github.com/auth0/auth0-react), which may be suitable for your Next.js application. + +The SPA security model used by `auth0-react` is different from the Web Application security model used by this SDK. In short, this SDK protects pages and API routes with a cookie session (see ["Cookies and Security"](#cookies-and-security)). A SPA library like `auth0-react` will store the user's ID token and access token directly in the browser and use them to access external APIs directly. + +You should be aware of the security implications of both models. However, [auth0-react](https://github.com/auth0/auth0-react) may be more suitable for your needs if you meet any of the following scenarios: + +- You are using [Static HTML Export](https://nextjs.org/docs/advanced-features/static-html-export) with Next.js. +- You do not need to access user data during server-side rendering. +- You want to get the access token and call external API's directly from the frontend layer rather than using Next.js API routes as a proxy to call external APIs. + +### Testing + +By default, the SDK creates and manages a singleton instance to run for the lifetime of the application. When testing your application, you may need to reset this instance, so its state does not leak between tests. + +If you're using Jest, we recommend using `jest.resetModules()` after each test. Alternatively, you can look at [creating your own instance of the SDK](./EXAMPLES.md#create-your-own-instance-of-the-sdk), so it can be recreated between tests. + +For end to end tests, have a look at how we use a [mock OIDC Provider](./scripts/oidc-provider.js). -- [UserProvider](https://auth0.github.io/nextjs-auth0/modules/frontend_use_user.html#userprovider) -- [useUser](https://auth0.github.io/nextjs-auth0/modules/frontend_use_user.html) -- [withPageAuthRequired](https://auth0.github.io/nextjs-auth0/modules/frontend_with_page_auth_required.html) +# Deploying -Visit the auto-generated [API Docs](https://auth0.github.io/nextjs-auth0/) for more details. +For deploying, have a look at [how we deploy our example app to Vercel](./examples/README.md). ## Contributing diff --git a/V2_MIGRATION_GUIDE.md b/V2_MIGRATION_GUIDE.md new file mode 100644 index 000000000..e308eae59 --- /dev/null +++ b/V2_MIGRATION_GUIDE.md @@ -0,0 +1,344 @@ +# V2 Migration Guide + +Guide to migrating from `1.x` to `2.x` + +- [Node 10 is no longer supported](#node-10-is-no-longer-supported) +- [`getSession` now returns a `Promise`](#getsession-now-returns-a-promise) +- [Client methods and components are now exported under /client](#client-methods-and-components-are-now-exported-under-client) +- [`updateSession` has been added](#updatesession-has-been-added) +- [`getServerSidePropsWrapper` has been removed](#getserversidepropswrapper-has-been-removed) +- [Profile API route no longer returns a 401](#profile-api-route-no-longer-returns-a-401) +- [Override default error handler](#override-default-error-handler) +- [afterCallback can write to the response](#aftercallback-can-write-to-the-response) +- [Configure default handlers](#configure-default-handlers) + +## Node 10 is no longer supported + +Node 12 LTS and newer LTS releases are supported. + +## `getSession` now returns a `Promise` + +### Before + +```js +// /pages/api/my-api +import { getSession } from '@auth0/nextjs-auth0'; + +function myApiRoute(req, res) { + const session = getSession(req, res); + // ... +} +``` + +### After + +```js +// /pages/api/my-api +import { getSession } from '@auth0/nextjs-auth0'; + +async function myApiRoute(req, res) { + const session = await getSession(req, res); + // ... +} +``` + +## Client methods and components are now exported under /client + +All methods and components for the browser should now be accessed under `/client`. + +### Before + +```js +// pages/_app.js +import React from 'react'; +import { UserProvider } from '@auth0/nextjs-auth0'; + +export default function App({ Component, pageProps }) { + return ( + + + + ); +} +``` + +```js +// pages/index.js +import { useUser } from '@auth0/nextjs-auth0'; + +export default function Index() { + const { user, error, isLoading } = useUser(); + + if (isLoading) return
Loading...
; + if (error) return
{error.message}
; + + if (user) { + return ( +
+ Welcome {user.name}! Logout +
+ ); + } + + return Login; +} +``` + +### After + +```js +// pages/_app.js +import React from 'react'; +import { UserProvider } from '@auth0/nextjs-auth0/client'; + +export default function App({ Component, pageProps }) { + return ( + + + + ); +} +``` + +```js +// pages/index.js +import { useUser, withPageAuthRequired as withPageAuthRequiredCSR } from '@auth0/nextjs-auth0/client'; +// The SSR version of withPageAuthRequired is still in the root export +import { withPageAuthRequired as withPageAuthRequiredSSR } from '@auth0/nextjs-auth0'; + +export default withPageAuthRequiredCSR(function Index() { + const { user, error, isLoading } = useUser(); + + if (isLoading) return
Loading...
; + if (error) return
{error.message}
; + + if (user) { + return ( +
+ Welcome {user.name}! Logout +
+ ); + } + + return Login; +}); + +export const getServerSideProps = withPageAuthRequiredSSR(); +``` + +### Before + +## `updateSession` has been added + +### Before + +Previously your application could make modifications to the session during the lifecycle of the request and those updates would be saved implicitly when the response's headers were written, just before delivering the response to the client. + +```js +// /pages/api/update-user +import { getSession } from '@auth0/nextjs-auth0'; + +function myApiRoute(req, res) { + const session = getSession(req, res); + session.foo = 'bar'; + res.json({ success: true }); +} +// The updated session is serialized and the cookie is updated +// when the cookie headers are written to the response. +``` + +### After + +We've introduced a new `updateSession` method which must be explicitly invoked in order to update the session. + +This will immediately serialise the session, write it to the cookie and return a `Promise`. + +```js +// /pages/api/update-user +import { getSession, updateSession } from '@auth0/nextjs-auth0'; + +async function myApiRoute(req, res) { + const session = await getSession(req, res); + // The session is updated, serialized and the cookie is updated + // everytime you call `updateSession`. + await updateSession(req, res, { ...session, user: { ...session.user, foo: 'bar' } }); + res.json({ success: true }); +} +``` + +## `getServerSidePropsWrapper` has been removed + +Because the process of modifying the session is now explicit, you no longer have to wrap `getServerSideProps` in `getServerSidePropsWrapper`. + +### Before + +```js +export const getServerSideProps = getServerSidePropsWrapper((ctx) => { + const session = getSession(ctx.req, ctx.res); + if (session) { + // User is authenticated + } else { + // User is not authenticated + } +}); +``` + +### After + +```js +export const getServerSideProps = async (ctx) => { + const session = await getSession(ctx.req, ctx.res); + if (session) { + // User is authenticated + } else { + // User is not authenticated + } +}; +``` + +## Profile API route no longer returns a 401 + +Previously the profile API route, by default at `/api/auth/me`, would return a 401 error when the user was not authenticated. While it was technically the right status code for the situation, it showed up in the browser console as an error. This API route will now return a 204 instead. Since 204 is a successful status code, it will not produce a console error. + +## Override default error handler + +You can now set the default error handler for the auth routes in a single place. + +### Before + +```js +export default handleAuth({ + async login(req, res) { + try { + await handleLogin(req, res); + } catch (error) { + errorLogger(error); + res.status(error.status || 500).end(); + } + }, + async callback(req, res) { + try { + await handleLogin(req, res); + } catch (error) { + errorLogger(error); + res.status(error.status || 500).end(); + } + } + // ... +}); +``` + +### After + +```js +export default handleAuth({ + onError(req, res, error) { + errorLogger(error); + // You can finish the response yourself if you want to customize + // the status code or redirect the user + // res.writeHead(302, { + // Location: '/custom-error-page' + // }); + // res.end(); + } +}); +``` + +## `afterCallback` can write to the response + +You can now write your own redirect header or terminate the request in `afterCallback`. + +### Before + +```js +const afterCallback = (req, res, session, state) => { + if (session.user.isAdmin) { + return session; + } else { + res.status(401).end('User is not admin'); + } +}; // 💥 Fails with ERR_HTTP_HEADERS_SENT + +const afterCallback = (req, res, session, state) => { + if (!session.user.isAdmin) { + res.setHeader('Location', '/admin'); + } + return session; +}; // 💥 Fails with ERR_HTTP_HEADERS_SENT +``` + +### After + +```js +const afterCallback = (req, res, session, state) => { + if (session.user.isAdmin) { + return session; + } else { + res.status(401).end('User is not admin'); + } +}; // Terminates the request with 401 if user is not admin + +const afterCallback = (req, res, session, state) => { + if (!session.user.isAdmin) { + res.setHeader('Location', '/admin'); + } + return session; +}; // Redirects to `/admin` if user is admin +``` + +## Configure default handlers + +Previously it was not possible to configure the default handlers. For example, to pass a `connection` parameter to the login handler, you had to override it. + +### Before + +```js +export default handleAuth({ + login: async (req, res) => { + try { + await handleLogin(req, res, { + authorizationParams: { connection: 'github' } + }); + } catch (error) { + // ... + } + } +}); +``` + +### After + +Now you can configure a default handler by passing an options object to it. + +```js +export default handleAuth({ + login: handleLogin({ + authorizationParams: { connection: 'github' } + }) +}); +``` + +You can also pass a function that receives the request and returns an options object. + +```js +export default handleAuth({ + login: handleLogin((req) => { + return { + authorizationParams: { connection: 'github' } + }; + }) +}); +``` + +You can even create new handlers by configuring the default ones. + +```js +export default handleAuth({ + // Creates /api/auth/signup + signup: handleLogin({ + authorizationParams: { screen_hint: 'signup' } + }) +}); +``` + +It is still possible to override the default handlers if needed. diff --git a/client.d.ts b/client.d.ts new file mode 100644 index 000000000..a2fd513e3 --- /dev/null +++ b/client.d.ts @@ -0,0 +1 @@ +export type * from './dist/client'; diff --git a/client.js b/client.js new file mode 100644 index 000000000..c9ae72953 --- /dev/null +++ b/client.js @@ -0,0 +1 @@ +module.exports = require('./dist/client'); diff --git a/cypress/e2e/smoke.cy.ts b/cypress/e2e/smoke.cy.ts index f84d2c2ec..8aae248a8 100644 --- a/cypress/e2e/smoke.cy.ts +++ b/cypress/e2e/smoke.cy.ts @@ -47,6 +47,13 @@ describe('smoke tests', () => { cy.get('[data-testid=profile]').contains(EMAIL); }); + it('should protect a page with middleware', () => { + cy.visit('/profile-mw'); + login(); + cy.url().should('eq', `${Cypress.config().baseUrl}/profile-mw`); + cy.get('[data-testid=profile]').contains(EMAIL); + }); + it('should logout and return to the index page', () => { cy.visit('/profile'); login(); diff --git a/docs/assets/js/search.js b/docs/assets/js/search.js index d9924cbbc..666375ce6 100644 --- a/docs/assets/js/search.js +++ b/docs/assets/js/search.js @@ -1 +1 @@ -window.searchData = {"kinds":{"1":"Module","64":"Function","128":"Class","256":"Interface","512":"Constructor","1024":"Property","2048":"Method","65536":"Type literal","4194304":"Type alias","16777216":"Reference"},"rows":[{"id":0,"kind":1,"name":"config","url":"modules/config.html","classes":"tsd-kind-module"},{"id":1,"kind":256,"name":"BaseConfig","url":"interfaces/config.baseconfig.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"config"},{"id":2,"kind":1024,"name":"secret","url":"interfaces/config.baseconfig.html#secret","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.BaseConfig"},{"id":3,"kind":1024,"name":"session","url":"interfaces/config.baseconfig.html#session","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.BaseConfig"},{"id":4,"kind":1024,"name":"auth0Logout","url":"interfaces/config.baseconfig.html#auth0logout","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.BaseConfig"},{"id":5,"kind":1024,"name":"authorizationParams","url":"interfaces/config.baseconfig.html#authorizationparams","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.BaseConfig"},{"id":6,"kind":1024,"name":"baseURL","url":"interfaces/config.baseconfig.html#baseurl","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.BaseConfig"},{"id":7,"kind":1024,"name":"clientID","url":"interfaces/config.baseconfig.html#clientid","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.BaseConfig"},{"id":8,"kind":1024,"name":"clientSecret","url":"interfaces/config.baseconfig.html#clientsecret","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.BaseConfig"},{"id":9,"kind":1024,"name":"clockTolerance","url":"interfaces/config.baseconfig.html#clocktolerance","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.BaseConfig"},{"id":10,"kind":1024,"name":"httpTimeout","url":"interfaces/config.baseconfig.html#httptimeout","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.BaseConfig"},{"id":11,"kind":1024,"name":"enableTelemetry","url":"interfaces/config.baseconfig.html#enabletelemetry","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.BaseConfig"},{"id":12,"kind":1024,"name":"getLoginState","url":"interfaces/config.baseconfig.html#getloginstate","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.BaseConfig"},{"id":13,"kind":65536,"name":"__type","url":"interfaces/config.baseconfig.html#__type","classes":"tsd-kind-type-literal tsd-parent-kind-interface","parent":"config.BaseConfig"},{"id":14,"kind":1024,"name":"identityClaimFilter","url":"interfaces/config.baseconfig.html#identityclaimfilter","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.BaseConfig"},{"id":15,"kind":1024,"name":"idpLogout","url":"interfaces/config.baseconfig.html#idplogout","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.BaseConfig"},{"id":16,"kind":1024,"name":"idTokenSigningAlg","url":"interfaces/config.baseconfig.html#idtokensigningalg","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.BaseConfig"},{"id":17,"kind":1024,"name":"issuerBaseURL","url":"interfaces/config.baseconfig.html#issuerbaseurl","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.BaseConfig"},{"id":18,"kind":1024,"name":"legacySameSiteCookie","url":"interfaces/config.baseconfig.html#legacysamesitecookie","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.BaseConfig"},{"id":19,"kind":1024,"name":"routes","url":"interfaces/config.baseconfig.html#routes","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.BaseConfig"},{"id":20,"kind":65536,"name":"__type","url":"interfaces/config.baseconfig.html#__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-interface","parent":"config.BaseConfig"},{"id":21,"kind":1024,"name":"postLogoutRedirect","url":"interfaces/config.baseconfig.html#__type-1.postlogoutredirect","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"config.BaseConfig.__type"},{"id":22,"kind":1024,"name":"callback","url":"interfaces/config.baseconfig.html#__type-1.callback","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"config.BaseConfig.__type"},{"id":23,"kind":256,"name":"SessionConfig","url":"interfaces/config.sessionconfig.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"config"},{"id":24,"kind":1024,"name":"name","url":"interfaces/config.sessionconfig.html#name","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.SessionConfig"},{"id":25,"kind":1024,"name":"rolling","url":"interfaces/config.sessionconfig.html#rolling","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.SessionConfig"},{"id":26,"kind":1024,"name":"rollingDuration","url":"interfaces/config.sessionconfig.html#rollingduration","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.SessionConfig"},{"id":27,"kind":1024,"name":"absoluteDuration","url":"interfaces/config.sessionconfig.html#absoluteduration","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.SessionConfig"},{"id":28,"kind":1024,"name":"cookie","url":"interfaces/config.sessionconfig.html#cookie","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.SessionConfig"},{"id":29,"kind":256,"name":"CookieConfig","url":"interfaces/config.cookieconfig.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"config"},{"id":30,"kind":1024,"name":"domain","url":"interfaces/config.cookieconfig.html#domain","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.CookieConfig"},{"id":31,"kind":1024,"name":"path","url":"interfaces/config.cookieconfig.html#path","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.CookieConfig"},{"id":32,"kind":1024,"name":"transient","url":"interfaces/config.cookieconfig.html#transient","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.CookieConfig"},{"id":33,"kind":1024,"name":"httpOnly","url":"interfaces/config.cookieconfig.html#httponly","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.CookieConfig"},{"id":34,"kind":1024,"name":"secure","url":"interfaces/config.cookieconfig.html#secure","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.CookieConfig"},{"id":35,"kind":1024,"name":"sameSite","url":"interfaces/config.cookieconfig.html#samesite","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.CookieConfig"},{"id":36,"kind":256,"name":"AuthorizationParameters","url":"interfaces/config.authorizationparameters.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"config"},{"id":37,"kind":1024,"name":"scope","url":"interfaces/config.authorizationparameters.html#scope","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-overwrite","parent":"config.AuthorizationParameters"},{"id":38,"kind":1024,"name":"response_mode","url":"interfaces/config.authorizationparameters.html#response_mode","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-overwrite","parent":"config.AuthorizationParameters"},{"id":39,"kind":1024,"name":"response_type","url":"interfaces/config.authorizationparameters.html#response_type","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-overwrite","parent":"config.AuthorizationParameters"},{"id":40,"kind":256,"name":"NextConfig","url":"interfaces/config.nextconfig.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"config"},{"id":41,"kind":1024,"name":"organization","url":"interfaces/config.nextconfig.html#organization","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.NextConfig"},{"id":42,"kind":1024,"name":"routes","url":"interfaces/config.nextconfig.html#routes","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.NextConfig"},{"id":43,"kind":65536,"name":"__type","url":"interfaces/config.nextconfig.html#__type","classes":"tsd-kind-type-literal tsd-parent-kind-interface","parent":"config.NextConfig"},{"id":44,"kind":1024,"name":"login","url":"interfaces/config.nextconfig.html#__type.login","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"config.NextConfig.__type"},{"id":45,"kind":1024,"name":"identityClaimFilter","url":"interfaces/config.nextconfig.html#identityclaimfilter","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"config.NextConfig"},{"id":46,"kind":4194304,"name":"ConfigParameters","url":"modules/config.html#configparameters","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"config"},{"id":47,"kind":1,"name":"frontend","url":"modules/frontend.html","classes":"tsd-kind-module"},{"id":48,"kind":1,"name":"frontend/use-user","url":"modules/frontend_use_user.html","classes":"tsd-kind-module"},{"id":49,"kind":256,"name":"UserProfile","url":"interfaces/frontend_use_user.userprofile.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"frontend/use-user"},{"id":50,"kind":1024,"name":"email","url":"interfaces/frontend_use_user.userprofile.html#email","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"frontend/use-user.UserProfile"},{"id":51,"kind":1024,"name":"email_verified","url":"interfaces/frontend_use_user.userprofile.html#email_verified","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"frontend/use-user.UserProfile"},{"id":52,"kind":1024,"name":"name","url":"interfaces/frontend_use_user.userprofile.html#name","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"frontend/use-user.UserProfile"},{"id":53,"kind":1024,"name":"nickname","url":"interfaces/frontend_use_user.userprofile.html#nickname","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"frontend/use-user.UserProfile"},{"id":54,"kind":1024,"name":"picture","url":"interfaces/frontend_use_user.userprofile.html#picture","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"frontend/use-user.UserProfile"},{"id":55,"kind":1024,"name":"sub","url":"interfaces/frontend_use_user.userprofile.html#sub","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"frontend/use-user.UserProfile"},{"id":56,"kind":1024,"name":"updated_at","url":"interfaces/frontend_use_user.userprofile.html#updated_at","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"frontend/use-user.UserProfile"},{"id":57,"kind":1024,"name":"org_id","url":"interfaces/frontend_use_user.userprofile.html#org_id","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"frontend/use-user.UserProfile"},{"id":58,"kind":4194304,"name":"UserContext","url":"modules/frontend_use_user.html#usercontext","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"frontend/use-user"},{"id":59,"kind":65536,"name":"__type","url":"modules/frontend_use_user.html#usercontext.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"frontend/use-user.UserContext"},{"id":60,"kind":1024,"name":"user","url":"modules/frontend_use_user.html#usercontext.__type-1.user","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"frontend/use-user.UserContext.__type"},{"id":61,"kind":1024,"name":"error","url":"modules/frontend_use_user.html#usercontext.__type-1.error","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"frontend/use-user.UserContext.__type"},{"id":62,"kind":1024,"name":"isLoading","url":"modules/frontend_use_user.html#usercontext.__type-1.isloading","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"frontend/use-user.UserContext.__type"},{"id":63,"kind":1024,"name":"checkSession","url":"modules/frontend_use_user.html#usercontext.__type-1.checksession","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"frontend/use-user.UserContext.__type"},{"id":64,"kind":65536,"name":"__type","url":"modules/frontend_use_user.html#usercontext.__type-1.__type-2","classes":"tsd-kind-type-literal tsd-parent-kind-type-literal","parent":"frontend/use-user.UserContext.__type"},{"id":65,"kind":128,"name":"RequestError","url":"classes/frontend_use_user.requesterror.html","classes":"tsd-kind-class tsd-parent-kind-module","parent":"frontend/use-user"},{"id":66,"kind":512,"name":"constructor","url":"classes/frontend_use_user.requesterror.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite","parent":"frontend/use-user.RequestError"},{"id":67,"kind":1024,"name":"status","url":"classes/frontend_use_user.requesterror.html#status","classes":"tsd-kind-property tsd-parent-kind-class","parent":"frontend/use-user.RequestError"},{"id":68,"kind":4194304,"name":"UserProviderProps","url":"modules/frontend_use_user.html#userproviderprops","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"frontend/use-user"},{"id":69,"kind":4194304,"name":"UseUser","url":"modules/frontend_use_user.html#useuser","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"frontend/use-user"},{"id":70,"kind":65536,"name":"__type","url":"modules/frontend_use_user.html#useuser.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"frontend/use-user.UseUser"},{"id":71,"kind":4194304,"name":"UserProvider","url":"modules/frontend_use_user.html#userprovider","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"frontend/use-user"},{"id":72,"kind":65536,"name":"__type","url":"modules/frontend_use_user.html#userprovider.__type-3","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"frontend/use-user.UserProvider"},{"id":73,"kind":1024,"name":"default","url":"modules/frontend_use_user.html#default","classes":"tsd-kind-property tsd-parent-kind-module","parent":"frontend/use-user"},{"id":74,"kind":65536,"name":"__type","url":"modules/frontend_use_user.html#__type-4","classes":"tsd-kind-type-literal tsd-parent-kind-module","parent":"frontend/use-user"},{"id":75,"kind":1,"name":"frontend/with-page-auth-required","url":"modules/frontend_with_page_auth_required.html","classes":"tsd-kind-module"},{"id":76,"kind":256,"name":"WithPageAuthRequiredOptions","url":"interfaces/frontend_with_page_auth_required.withpageauthrequiredoptions.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"frontend/with-page-auth-required"},{"id":77,"kind":1024,"name":"returnTo","url":"interfaces/frontend_with_page_auth_required.withpageauthrequiredoptions.html#returnto","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"frontend/with-page-auth-required.WithPageAuthRequiredOptions"},{"id":78,"kind":1024,"name":"onRedirecting","url":"interfaces/frontend_with_page_auth_required.withpageauthrequiredoptions.html#onredirecting","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"frontend/with-page-auth-required.WithPageAuthRequiredOptions"},{"id":79,"kind":65536,"name":"__type","url":"interfaces/frontend_with_page_auth_required.withpageauthrequiredoptions.html#__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-interface","parent":"frontend/with-page-auth-required.WithPageAuthRequiredOptions"},{"id":80,"kind":1024,"name":"onError","url":"interfaces/frontend_with_page_auth_required.withpageauthrequiredoptions.html#onerror","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"frontend/with-page-auth-required.WithPageAuthRequiredOptions"},{"id":81,"kind":65536,"name":"__type","url":"interfaces/frontend_with_page_auth_required.withpageauthrequiredoptions.html#__type","classes":"tsd-kind-type-literal tsd-parent-kind-interface","parent":"frontend/with-page-auth-required.WithPageAuthRequiredOptions"},{"id":82,"kind":256,"name":"UserProps","url":"interfaces/frontend_with_page_auth_required.userprops.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"frontend/with-page-auth-required"},{"id":83,"kind":1024,"name":"user","url":"interfaces/frontend_with_page_auth_required.userprops.html#user","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"frontend/with-page-auth-required.UserProps"},{"id":84,"kind":4194304,"name":"WithPageAuthRequired","url":"modules/frontend_with_page_auth_required.html#withpageauthrequired","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"frontend/with-page-auth-required"},{"id":85,"kind":65536,"name":"__type","url":"modules/frontend_with_page_auth_required.html#withpageauthrequired.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias tsd-has-type-parameter","parent":"frontend/with-page-auth-required.WithPageAuthRequired"},{"id":86,"kind":1,"name":"handlers/auth","url":"modules/handlers_auth.html","classes":"tsd-kind-module"},{"id":87,"kind":256,"name":"Handlers","url":"interfaces/handlers_auth.handlers.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"handlers/auth"},{"id":88,"kind":1024,"name":"login","url":"interfaces/handlers_auth.handlers.html#login","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"handlers/auth.Handlers"},{"id":89,"kind":1024,"name":"logout","url":"interfaces/handlers_auth.handlers.html#logout","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"handlers/auth.Handlers"},{"id":90,"kind":1024,"name":"callback","url":"interfaces/handlers_auth.handlers.html#callback","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"handlers/auth.Handlers"},{"id":91,"kind":1024,"name":"profile","url":"interfaces/handlers_auth.handlers.html#profile","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"handlers/auth.Handlers"},{"id":92,"kind":4194304,"name":"HandleAuth","url":"modules/handlers_auth.html#handleauth","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"handlers/auth"},{"id":93,"kind":65536,"name":"__type","url":"modules/handlers_auth.html#handleauth.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"handlers/auth.HandleAuth"},{"id":94,"kind":1,"name":"handlers/callback","url":"modules/handlers_callback.html","classes":"tsd-kind-module"},{"id":95,"kind":4194304,"name":"AfterCallback","url":"modules/handlers_callback.html#aftercallback","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"handlers/callback"},{"id":96,"kind":65536,"name":"__type","url":"modules/handlers_callback.html#aftercallback.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"handlers/callback.AfterCallback"},{"id":97,"kind":256,"name":"CallbackOptions","url":"interfaces/handlers_callback.callbackoptions.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"handlers/callback"},{"id":98,"kind":1024,"name":"afterCallback","url":"interfaces/handlers_callback.callbackoptions.html#aftercallback","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"handlers/callback.CallbackOptions"},{"id":99,"kind":1024,"name":"redirectUri","url":"interfaces/handlers_callback.callbackoptions.html#redirecturi","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"handlers/callback.CallbackOptions"},{"id":100,"kind":1024,"name":"organization","url":"interfaces/handlers_callback.callbackoptions.html#organization","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"handlers/callback.CallbackOptions"},{"id":101,"kind":1024,"name":"authorizationParams","url":"interfaces/handlers_callback.callbackoptions.html#authorizationparams","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"handlers/callback.CallbackOptions"},{"id":102,"kind":4194304,"name":"HandleCallback","url":"modules/handlers_callback.html#handlecallback","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"handlers/callback"},{"id":103,"kind":65536,"name":"__type","url":"modules/handlers_callback.html#handlecallback.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"handlers/callback.HandleCallback"},{"id":104,"kind":1,"name":"handlers","url":"modules/handlers.html","classes":"tsd-kind-module"},{"id":105,"kind":1,"name":"handlers/login","url":"modules/handlers_login.html","classes":"tsd-kind-module"},{"id":106,"kind":4194304,"name":"GetLoginState","url":"modules/handlers_login.html#getloginstate","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"handlers/login"},{"id":107,"kind":65536,"name":"__type","url":"modules/handlers_login.html#getloginstate.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"handlers/login.GetLoginState"},{"id":108,"kind":256,"name":"AuthorizationParams","url":"interfaces/handlers_login.authorizationparams.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"handlers/login"},{"id":109,"kind":1024,"name":"invitation","url":"interfaces/handlers_login.authorizationparams.html#invitation","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"handlers/login.AuthorizationParams"},{"id":110,"kind":1024,"name":"organization","url":"interfaces/handlers_login.authorizationparams.html#organization","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"handlers/login.AuthorizationParams"},{"id":111,"kind":1024,"name":"screen_hint","url":"interfaces/handlers_login.authorizationparams.html#screen_hint","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"handlers/login.AuthorizationParams"},{"id":112,"kind":1024,"name":"scope","url":"interfaces/handlers_login.authorizationparams.html#scope","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"handlers/login.AuthorizationParams"},{"id":113,"kind":1024,"name":"response_mode","url":"interfaces/handlers_login.authorizationparams.html#response_mode","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"handlers/login.AuthorizationParams"},{"id":114,"kind":1024,"name":"response_type","url":"interfaces/handlers_login.authorizationparams.html#response_type","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"handlers/login.AuthorizationParams"},{"id":115,"kind":256,"name":"LoginOptions","url":"interfaces/handlers_login.loginoptions.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"handlers/login"},{"id":116,"kind":1024,"name":"authorizationParams","url":"interfaces/handlers_login.loginoptions.html#authorizationparams","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"handlers/login.LoginOptions"},{"id":117,"kind":1024,"name":"returnTo","url":"interfaces/handlers_login.loginoptions.html#returnto","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"handlers/login.LoginOptions"},{"id":118,"kind":1024,"name":"getLoginState","url":"interfaces/handlers_login.loginoptions.html#getloginstate","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"handlers/login.LoginOptions"},{"id":119,"kind":4194304,"name":"HandleLogin","url":"modules/handlers_login.html#handlelogin","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"handlers/login"},{"id":120,"kind":65536,"name":"__type","url":"modules/handlers_login.html#handlelogin.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"handlers/login.HandleLogin"},{"id":121,"kind":1,"name":"handlers/logout","url":"modules/handlers_logout.html","classes":"tsd-kind-module"},{"id":122,"kind":256,"name":"LogoutOptions","url":"interfaces/handlers_logout.logoutoptions.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"handlers/logout"},{"id":123,"kind":1024,"name":"returnTo","url":"interfaces/handlers_logout.logoutoptions.html#returnto","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"handlers/logout.LogoutOptions"},{"id":124,"kind":4194304,"name":"HandleLogout","url":"modules/handlers_logout.html#handlelogout","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"handlers/logout"},{"id":125,"kind":65536,"name":"__type","url":"modules/handlers_logout.html#handlelogout.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"handlers/logout.HandleLogout"},{"id":126,"kind":1,"name":"handlers/profile","url":"modules/handlers_profile.html","classes":"tsd-kind-module"},{"id":127,"kind":4194304,"name":"AfterRefetch","url":"modules/handlers_profile.html#afterrefetch","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"handlers/profile"},{"id":128,"kind":65536,"name":"__type","url":"modules/handlers_profile.html#afterrefetch.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"handlers/profile.AfterRefetch"},{"id":129,"kind":4194304,"name":"ProfileOptions","url":"modules/handlers_profile.html#profileoptions","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"handlers/profile"},{"id":130,"kind":65536,"name":"__type","url":"modules/handlers_profile.html#profileoptions.__type-2","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"handlers/profile.ProfileOptions"},{"id":131,"kind":1024,"name":"refetch","url":"modules/handlers_profile.html#profileoptions.__type-2.refetch","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"handlers/profile.ProfileOptions.__type"},{"id":132,"kind":1024,"name":"afterRefetch","url":"modules/handlers_profile.html#profileoptions.__type-2.afterrefetch-1","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"handlers/profile.ProfileOptions.__type"},{"id":133,"kind":4194304,"name":"HandleProfile","url":"modules/handlers_profile.html#handleprofile","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"handlers/profile"},{"id":134,"kind":65536,"name":"__type","url":"modules/handlers_profile.html#handleprofile.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"handlers/profile.HandleProfile"},{"id":135,"kind":1,"name":"helpers/get-server-side-props-wrapper","url":"modules/helpers_get_server_side_props_wrapper.html","classes":"tsd-kind-module"},{"id":136,"kind":4194304,"name":"GetServerSidePropsWrapper","url":"modules/helpers_get_server_side_props_wrapper.html#getserversidepropswrapper","classes":"tsd-kind-type-alias tsd-parent-kind-module tsd-has-type-parameter","parent":"helpers/get-server-side-props-wrapper"},{"id":137,"kind":65536,"name":"__type","url":"modules/helpers_get_server_side_props_wrapper.html#getserversidepropswrapper.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"helpers/get-server-side-props-wrapper.GetServerSidePropsWrapper"},{"id":138,"kind":1,"name":"helpers","url":"modules/helpers.html","classes":"tsd-kind-module"},{"id":139,"kind":1,"name":"helpers/with-api-auth-required","url":"modules/helpers_with_api_auth_required.html","classes":"tsd-kind-module"},{"id":140,"kind":4194304,"name":"WithApiAuthRequired","url":"modules/helpers_with_api_auth_required.html#withapiauthrequired","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"helpers/with-api-auth-required"},{"id":141,"kind":65536,"name":"__type","url":"modules/helpers_with_api_auth_required.html#withapiauthrequired.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"helpers/with-api-auth-required.WithApiAuthRequired"},{"id":142,"kind":1,"name":"helpers/with-page-auth-required","url":"modules/helpers_with_page_auth_required.html","classes":"tsd-kind-module"},{"id":143,"kind":4194304,"name":"GetServerSidePropsResultWithSession","url":"modules/helpers_with_page_auth_required.html#getserversidepropsresultwithsession","classes":"tsd-kind-type-alias tsd-parent-kind-module tsd-has-type-parameter","parent":"helpers/with-page-auth-required"},{"id":144,"kind":4194304,"name":"PageRoute","url":"modules/helpers_with_page_auth_required.html#pageroute","classes":"tsd-kind-type-alias tsd-parent-kind-module tsd-has-type-parameter","parent":"helpers/with-page-auth-required"},{"id":145,"kind":65536,"name":"__type","url":"modules/helpers_with_page_auth_required.html#pageroute.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"helpers/with-page-auth-required.PageRoute"},{"id":146,"kind":4194304,"name":"WithPageAuthRequiredOptions","url":"modules/helpers_with_page_auth_required.html#withpageauthrequiredoptions","classes":"tsd-kind-type-alias tsd-parent-kind-module tsd-has-type-parameter","parent":"helpers/with-page-auth-required"},{"id":147,"kind":65536,"name":"__type","url":"modules/helpers_with_page_auth_required.html#withpageauthrequiredoptions.__type-2","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"helpers/with-page-auth-required.WithPageAuthRequiredOptions"},{"id":148,"kind":1024,"name":"getServerSideProps","url":"modules/helpers_with_page_auth_required.html#withpageauthrequiredoptions.__type-2.getserversideprops","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"helpers/with-page-auth-required.WithPageAuthRequiredOptions.__type"},{"id":149,"kind":1024,"name":"returnTo","url":"modules/helpers_with_page_auth_required.html#withpageauthrequiredoptions.__type-2.returnto","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"helpers/with-page-auth-required.WithPageAuthRequiredOptions.__type"},{"id":150,"kind":4194304,"name":"WithPageAuthRequired","url":"modules/helpers_with_page_auth_required.html#withpageauthrequired","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"helpers/with-page-auth-required"},{"id":151,"kind":65536,"name":"__type","url":"modules/helpers_with_page_auth_required.html#withpageauthrequired.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias tsd-has-type-parameter","parent":"helpers/with-page-auth-required.WithPageAuthRequired"},{"id":152,"kind":1,"name":"instance","url":"modules/instance.html","classes":"tsd-kind-module"},{"id":153,"kind":256,"name":"SignInWithAuth0","url":"interfaces/instance.signinwithauth0.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"instance"},{"id":154,"kind":1024,"name":"getSession","url":"interfaces/instance.signinwithauth0.html#getsession","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"instance.SignInWithAuth0"},{"id":155,"kind":1024,"name":"getAccessToken","url":"interfaces/instance.signinwithauth0.html#getaccesstoken","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"instance.SignInWithAuth0"},{"id":156,"kind":1024,"name":"handleLogin","url":"interfaces/instance.signinwithauth0.html#handlelogin","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"instance.SignInWithAuth0"},{"id":157,"kind":1024,"name":"handleCallback","url":"interfaces/instance.signinwithauth0.html#handlecallback","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"instance.SignInWithAuth0"},{"id":158,"kind":1024,"name":"handleLogout","url":"interfaces/instance.signinwithauth0.html#handlelogout","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"instance.SignInWithAuth0"},{"id":159,"kind":1024,"name":"handleProfile","url":"interfaces/instance.signinwithauth0.html#handleprofile","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"instance.SignInWithAuth0"},{"id":160,"kind":1024,"name":"withApiAuthRequired","url":"interfaces/instance.signinwithauth0.html#withapiauthrequired","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"instance.SignInWithAuth0"},{"id":161,"kind":1024,"name":"withPageAuthRequired","url":"interfaces/instance.signinwithauth0.html#withpageauthrequired","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"instance.SignInWithAuth0"},{"id":162,"kind":1024,"name":"getServerSidePropsWrapper","url":"interfaces/instance.signinwithauth0.html#getserversidepropswrapper","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"instance.SignInWithAuth0"},{"id":163,"kind":1024,"name":"handleAuth","url":"interfaces/instance.signinwithauth0.html#handleauth","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"instance.SignInWithAuth0"},{"id":164,"kind":4194304,"name":"InitAuth0","url":"modules/instance.html#initauth0","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"instance"},{"id":165,"kind":65536,"name":"__type","url":"modules/instance.html#initauth0.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"instance.InitAuth0"},{"id":166,"kind":1,"name":"session/get-access-token","url":"modules/session_get_access_token.html","classes":"tsd-kind-module"},{"id":167,"kind":4194304,"name":"AfterRefresh","url":"modules/session_get_access_token.html#afterrefresh","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"session/get-access-token"},{"id":168,"kind":65536,"name":"__type","url":"modules/session_get_access_token.html#afterrefresh.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"session/get-access-token.AfterRefresh"},{"id":169,"kind":256,"name":"AccessTokenRequest","url":"interfaces/session_get_access_token.accesstokenrequest.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"session/get-access-token"},{"id":170,"kind":1024,"name":"scopes","url":"interfaces/session_get_access_token.accesstokenrequest.html#scopes","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"session/get-access-token.AccessTokenRequest"},{"id":171,"kind":1024,"name":"refresh","url":"interfaces/session_get_access_token.accesstokenrequest.html#refresh","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"session/get-access-token.AccessTokenRequest"},{"id":172,"kind":1024,"name":"afterRefresh","url":"interfaces/session_get_access_token.accesstokenrequest.html#afterrefresh","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"session/get-access-token.AccessTokenRequest"},{"id":173,"kind":1024,"name":"authorizationParams","url":"interfaces/session_get_access_token.accesstokenrequest.html#authorizationparams","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"session/get-access-token.AccessTokenRequest"},{"id":174,"kind":256,"name":"GetAccessTokenResult","url":"interfaces/session_get_access_token.getaccesstokenresult.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"session/get-access-token"},{"id":175,"kind":1024,"name":"accessToken","url":"interfaces/session_get_access_token.getaccesstokenresult.html#accesstoken","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"session/get-access-token.GetAccessTokenResult"},{"id":176,"kind":4194304,"name":"GetAccessToken","url":"modules/session_get_access_token.html#getaccesstoken","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"session/get-access-token"},{"id":177,"kind":65536,"name":"__type","url":"modules/session_get_access_token.html#getaccesstoken.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"session/get-access-token.GetAccessToken"},{"id":178,"kind":1,"name":"session/get-session","url":"modules/session_get_session.html","classes":"tsd-kind-module"},{"id":179,"kind":4194304,"name":"GetSession","url":"modules/session_get_session.html#getsession","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"session/get-session"},{"id":180,"kind":65536,"name":"__type","url":"modules/session_get_session.html#getsession.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"session/get-session.GetSession"},{"id":181,"kind":1,"name":"session","url":"modules/session.html","classes":"tsd-kind-module"},{"id":182,"kind":1,"name":"session/session","url":"modules/session_session.html","classes":"tsd-kind-module"},{"id":183,"kind":256,"name":"Claims","url":"interfaces/session_session.claims.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"session/session"},{"id":184,"kind":128,"name":"default","url":"classes/session_session.default.html","classes":"tsd-kind-class tsd-parent-kind-module","parent":"session/session"},{"id":185,"kind":512,"name":"constructor","url":"classes/session_session.default.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"session/session.default"},{"id":186,"kind":1024,"name":"user","url":"classes/session_session.default.html#user","classes":"tsd-kind-property tsd-parent-kind-class","parent":"session/session.default"},{"id":187,"kind":1024,"name":"idToken","url":"classes/session_session.default.html#idtoken","classes":"tsd-kind-property tsd-parent-kind-class","parent":"session/session.default"},{"id":188,"kind":1024,"name":"accessToken","url":"classes/session_session.default.html#accesstoken","classes":"tsd-kind-property tsd-parent-kind-class","parent":"session/session.default"},{"id":189,"kind":1024,"name":"accessTokenScope","url":"classes/session_session.default.html#accesstokenscope","classes":"tsd-kind-property tsd-parent-kind-class","parent":"session/session.default"},{"id":190,"kind":1024,"name":"accessTokenExpiresAt","url":"classes/session_session.default.html#accesstokenexpiresat","classes":"tsd-kind-property tsd-parent-kind-class","parent":"session/session.default"},{"id":191,"kind":1024,"name":"refreshToken","url":"classes/session_session.default.html#refreshtoken","classes":"tsd-kind-property tsd-parent-kind-class","parent":"session/session.default"},{"id":192,"kind":1,"name":"utils/errors","url":"modules/utils_errors.html","classes":"tsd-kind-module"},{"id":193,"kind":64,"name":"htmlSafe","url":"modules/utils_errors.html#htmlsafe","classes":"tsd-kind-function tsd-parent-kind-module","parent":"utils/errors"},{"id":194,"kind":128,"name":"AccessTokenError","url":"classes/utils_errors.accesstokenerror.html","classes":"tsd-kind-class tsd-parent-kind-module","parent":"utils/errors"},{"id":195,"kind":512,"name":"constructor","url":"classes/utils_errors.accesstokenerror.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite","parent":"utils/errors.AccessTokenError"},{"id":196,"kind":1024,"name":"code","url":"classes/utils_errors.accesstokenerror.html#code","classes":"tsd-kind-property tsd-parent-kind-class","parent":"utils/errors.AccessTokenError"},{"id":197,"kind":128,"name":"HandlerError","url":"classes/utils_errors.handlererror.html","classes":"tsd-kind-class tsd-parent-kind-module","parent":"utils/errors"},{"id":198,"kind":512,"name":"constructor","url":"classes/utils_errors.handlererror.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite","parent":"utils/errors.HandlerError"},{"id":199,"kind":1024,"name":"status","url":"classes/utils_errors.handlererror.html#status","classes":"tsd-kind-property tsd-parent-kind-class","parent":"utils/errors.HandlerError"},{"id":200,"kind":1024,"name":"code","url":"classes/utils_errors.handlererror.html#code","classes":"tsd-kind-property tsd-parent-kind-class","parent":"utils/errors.HandlerError"},{"id":201,"kind":1,"name":"version","url":"modules/version.html","classes":"tsd-kind-module"},{"id":202,"kind":1024,"name":"default","url":"modules/version.html#default","classes":"tsd-kind-property tsd-parent-kind-module","parent":"version"},{"id":203,"kind":1024,"name":"ConfigProvider","url":"modules/frontend.html#configprovider","classes":"tsd-kind-property tsd-parent-kind-module","parent":"frontend"},{"id":204,"kind":65536,"name":"__type","url":"modules/frontend.html#__type","classes":"tsd-kind-type-literal tsd-parent-kind-module","parent":"frontend"},{"id":205,"kind":4194304,"name":"ConfigProviderProps","url":"modules/frontend.html#configproviderprops","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"frontend"},{"id":206,"kind":64,"name":"useConfig","url":"modules/frontend.html#useconfig","classes":"tsd-kind-function tsd-parent-kind-module","parent":"frontend"},{"id":207,"kind":16777216,"name":"UserProvider","url":"modules/frontend.html#userprovider","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"frontend"},{"id":208,"kind":16777216,"name":"UserProviderProps","url":"modules/frontend.html#userproviderprops","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"frontend"},{"id":209,"kind":16777216,"name":"UserProfile","url":"modules/frontend.html#userprofile","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"frontend"},{"id":210,"kind":16777216,"name":"RequestError","url":"modules/frontend.html#requesterror","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"frontend"},{"id":211,"kind":16777216,"name":"WithPageAuthRequired","url":"modules/frontend.html#withpageauthrequired","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"frontend"},{"id":212,"kind":16777216,"name":"WithPageAuthRequiredOptions","url":"modules/frontend.html#withpageauthrequiredoptions","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"frontend"},{"id":213,"kind":16777216,"name":"HandleCallback","url":"modules/handlers.html#handlecallback","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"handlers"},{"id":214,"kind":16777216,"name":"CallbackOptions","url":"modules/handlers.html#callbackoptions","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"handlers"},{"id":215,"kind":16777216,"name":"AfterCallback","url":"modules/handlers.html#aftercallback","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"handlers"},{"id":216,"kind":16777216,"name":"HandleLogin","url":"modules/handlers.html#handlelogin","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"handlers"},{"id":217,"kind":16777216,"name":"LoginOptions","url":"modules/handlers.html#loginoptions","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"handlers"},{"id":218,"kind":16777216,"name":"GetLoginState","url":"modules/handlers.html#getloginstate","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"handlers"},{"id":219,"kind":16777216,"name":"HandleLogout","url":"modules/handlers.html#handlelogout","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"handlers"},{"id":220,"kind":16777216,"name":"LogoutOptions","url":"modules/handlers.html#logoutoptions","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"handlers"},{"id":221,"kind":16777216,"name":"HandleProfile","url":"modules/handlers.html#handleprofile","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"handlers"},{"id":222,"kind":16777216,"name":"ProfileOptions","url":"modules/handlers.html#profileoptions","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"handlers"},{"id":223,"kind":16777216,"name":"AfterRefetch","url":"modules/handlers.html#afterrefetch","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"handlers"},{"id":224,"kind":16777216,"name":"Handlers","url":"modules/handlers.html#handlers-1","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"handlers"},{"id":225,"kind":16777216,"name":"HandleAuth","url":"modules/handlers.html#handleauth","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"handlers"},{"id":226,"kind":16777216,"name":"WithApiAuthRequired","url":"modules/helpers.html#withapiauthrequired","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"helpers"},{"id":227,"kind":16777216,"name":"GetServerSidePropsResultWithSession","url":"modules/helpers.html#getserversidepropsresultwithsession","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"helpers"},{"id":228,"kind":16777216,"name":"WithPageAuthRequired","url":"modules/helpers.html#withpageauthrequired","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"helpers"},{"id":229,"kind":16777216,"name":"WithPageAuthRequiredOptions","url":"modules/helpers.html#withpageauthrequiredoptions","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"helpers"},{"id":230,"kind":16777216,"name":"PageRoute","url":"modules/helpers.html#pageroute","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"helpers"},{"id":231,"kind":16777216,"name":"GetServerSidePropsWrapper","url":"modules/helpers.html#getserversidepropswrapper","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"helpers"},{"id":232,"kind":16777216,"name":"Session","url":"modules/session.html#session-1","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"session"},{"id":233,"kind":16777216,"name":"Claims","url":"modules/session.html#claims","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"session"},{"id":234,"kind":16777216,"name":"GetSession","url":"modules/session.html#getsession","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"session"},{"id":235,"kind":16777216,"name":"GetAccessToken","url":"modules/session.html#getaccesstoken","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"session"},{"id":236,"kind":16777216,"name":"AccessTokenRequest","url":"modules/session.html#accesstokenrequest","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"session"},{"id":237,"kind":16777216,"name":"GetAccessTokenResult","url":"modules/session.html#getaccesstokenresult","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"session"},{"id":238,"kind":128,"name":"SessionCache","url":"classes/session.sessioncache.html","classes":"tsd-kind-class tsd-parent-kind-module","parent":"session"},{"id":239,"kind":512,"name":"constructor","url":"classes/session.sessioncache.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"session.SessionCache"},{"id":240,"kind":2048,"name":"init","url":"classes/session.sessioncache.html#init","classes":"tsd-kind-method tsd-parent-kind-class","parent":"session.SessionCache"},{"id":241,"kind":2048,"name":"save","url":"classes/session.sessioncache.html#save","classes":"tsd-kind-method tsd-parent-kind-class","parent":"session.SessionCache"},{"id":242,"kind":2048,"name":"create","url":"classes/session.sessioncache.html#create","classes":"tsd-kind-method tsd-parent-kind-class","parent":"session.SessionCache"},{"id":243,"kind":2048,"name":"delete","url":"classes/session.sessioncache.html#delete","classes":"tsd-kind-method tsd-parent-kind-class","parent":"session.SessionCache"},{"id":244,"kind":2048,"name":"isAuthenticated","url":"classes/session.sessioncache.html#isauthenticated","classes":"tsd-kind-method tsd-parent-kind-class","parent":"session.SessionCache"},{"id":245,"kind":2048,"name":"getIdToken","url":"classes/session.sessioncache.html#getidtoken","classes":"tsd-kind-method tsd-parent-kind-class","parent":"session.SessionCache"},{"id":246,"kind":2048,"name":"set","url":"classes/session.sessioncache.html#set","classes":"tsd-kind-method tsd-parent-kind-class","parent":"session.SessionCache"},{"id":247,"kind":2048,"name":"get","url":"classes/session.sessioncache.html#get","classes":"tsd-kind-method tsd-parent-kind-class","parent":"session.SessionCache"},{"id":248,"kind":2048,"name":"fromTokenSet","url":"classes/session.sessioncache.html#fromtokenset","classes":"tsd-kind-method tsd-parent-kind-class","parent":"session.SessionCache"}],"index":{"version":"2.3.9","fields":["name","parent"],"fieldVectors":[["name/0",[0,36.007]],["parent/0",[]],["name/1",[1,52.533]],["parent/1",[0,3.972]],["name/2",[2,52.533]],["parent/2",[3,2.89]],["name/3",[4,30.762]],["parent/3",[3,2.89]],["name/4",[5,52.533]],["parent/4",[3,2.89]],["name/5",[6,39.192]],["parent/5",[3,2.89]],["name/6",[7,52.533]],["parent/6",[3,2.89]],["name/7",[8,52.533]],["parent/7",[3,2.89]],["name/8",[9,52.533]],["parent/8",[3,2.89]],["name/9",[10,52.533]],["parent/9",[3,2.89]],["name/10",[11,52.533]],["parent/10",[3,2.89]],["name/11",[12,52.533]],["parent/11",[3,2.89]],["name/12",[13,41.252]],["parent/12",[3,2.89]],["name/13",[14,21.602]],["parent/13",[3,2.89]],["name/14",[15,47.288]],["parent/14",[3,2.89]],["name/15",[16,52.533]],["parent/15",[3,2.89]],["name/16",[17,52.533]],["parent/16",[3,2.89]],["name/17",[18,52.533]],["parent/17",[3,2.89]],["name/18",[19,52.533]],["parent/18",[3,2.89]],["name/19",[20,47.288]],["parent/19",[3,2.89]],["name/20",[14,21.602]],["parent/20",[3,2.89]],["name/21",[21,52.533]],["parent/21",[22,5.217]],["name/22",[23,47.288]],["parent/22",[22,5.217]],["name/23",[24,52.533]],["parent/23",[0,3.972]],["name/24",[25,47.288]],["parent/24",[26,4.324]],["name/25",[27,52.533]],["parent/25",[26,4.324]],["name/26",[28,52.533]],["parent/26",[26,4.324]],["name/27",[29,52.533]],["parent/27",[26,4.324]],["name/28",[30,52.533]],["parent/28",[26,4.324]],["name/29",[31,52.533]],["parent/29",[0,3.972]],["name/30",[32,52.533]],["parent/30",[33,4.134]],["name/31",[34,52.533]],["parent/31",[33,4.134]],["name/32",[35,52.533]],["parent/32",[33,4.134]],["name/33",[36,52.533]],["parent/33",[33,4.134]],["name/34",[37,52.533]],["parent/34",[33,4.134]],["name/35",[38,52.533]],["parent/35",[33,4.134]],["name/36",[39,52.533]],["parent/36",[0,3.972]],["name/37",[40,47.288]],["parent/37",[41,4.836]],["name/38",[42,47.288]],["parent/38",[41,4.836]],["name/39",[43,47.288]],["parent/39",[41,4.836]],["name/40",[44,52.533]],["parent/40",[0,3.972]],["name/41",[45,43.833]],["parent/41",[46,4.551]],["name/42",[20,47.288]],["parent/42",[46,4.551]],["name/43",[14,21.602]],["parent/43",[46,4.551]],["name/44",[47,47.288]],["parent/44",[48,5.795]],["name/45",[15,47.288]],["parent/45",[46,4.551]],["name/46",[49,52.533]],["parent/46",[0,3.972]],["name/47",[50,31.618]],["parent/47",[]],["name/48",[51,16.268,52,22.079]],["parent/48",[]],["name/49",[53,47.288]],["parent/49",[51,1.879,52,2.55]],["name/50",[54,52.533]],["parent/50",[51,1.879,55,2.879]],["name/51",[56,52.533]],["parent/51",[51,1.879,55,2.879]],["name/52",[25,47.288]],["parent/52",[51,1.879,55,2.879]],["name/53",[57,52.533]],["parent/53",[51,1.879,55,2.879]],["name/54",[58,52.533]],["parent/54",[51,1.879,55,2.879]],["name/55",[59,52.533]],["parent/55",[51,1.879,55,2.879]],["name/56",[60,52.533]],["parent/56",[51,1.879,55,2.879]],["name/57",[61,52.533]],["parent/57",[51,1.879,55,2.879]],["name/58",[62,52.533]],["parent/58",[51,1.879,52,2.55]],["name/59",[14,21.602]],["parent/59",[51,1.879,63,4.355]],["name/60",[52,30.762]],["parent/60",[51,1.879,64,3.249]],["name/61",[65,52.533]],["parent/61",[51,1.879,64,3.249]],["name/62",[66,52.533]],["parent/62",[51,1.879,64,3.249]],["name/63",[67,52.533]],["parent/63",[51,1.879,64,3.249]],["name/64",[14,21.602]],["parent/64",[51,1.879,64,3.249]],["name/65",[68,47.288]],["parent/65",[51,1.879,52,2.55]],["name/66",[69,39.192]],["parent/66",[51,1.879,70,3.92]],["name/67",[71,47.288]],["parent/67",[51,1.879,70,3.92]],["name/68",[72,47.288]],["parent/68",[51,1.879,52,2.55]],["name/69",[73,52.533]],["parent/69",[51,1.879,52,2.55]],["name/70",[14,21.602]],["parent/70",[51,1.879,74,4.355]],["name/71",[75,47.288]],["parent/71",[51,1.879,52,2.55]],["name/72",[14,21.602]],["parent/72",[51,1.879,76,4.355]],["name/73",[77,43.833]],["parent/73",[51,1.879,52,2.55]],["name/74",[14,21.602]],["parent/74",[51,1.879,52,2.55]],["name/75",[78,14.506,79,11.558,80,10.943,81,14.506]],["parent/75",[]],["name/76",[82,41.252]],["parent/76",[78,1.751,79,1.395,80,1.321,81,1.751]],["name/77",[83,41.252]],["parent/77",[78,1.751,79,1.395,80,1.321,84,2.076]],["name/78",[85,52.533]],["parent/78",[78,1.751,79,1.395,80,1.321,84,2.076]],["name/79",[14,21.602]],["parent/79",[78,1.751,79,1.395,80,1.321,84,2.076]],["name/80",[86,52.533]],["parent/80",[78,1.751,79,1.395,80,1.321,84,2.076]],["name/81",[14,21.602]],["parent/81",[78,1.751,79,1.395,80,1.321,84,2.076]],["name/82",[87,52.533]],["parent/82",[78,1.751,79,1.395,80,1.321,81,1.751]],["name/83",[52,30.762]],["parent/83",[78,1.751,79,1.395,80,1.321,88,2.909]],["name/84",[89,39.192]],["parent/84",[78,1.751,79,1.395,80,1.321,81,1.751]],["name/85",[14,21.602]],["parent/85",[78,1.751,79,1.395,80,1.321,90,2.619]],["name/86",[91,43.833]],["parent/86",[]],["name/87",[92,27.911]],["parent/87",[91,4.836]],["name/88",[47,47.288]],["parent/88",[93,4.551]],["name/89",[94,52.533]],["parent/89",[93,4.551]],["name/90",[23,47.288]],["parent/90",[93,4.551]],["name/91",[95,52.533]],["parent/91",[93,4.551]],["name/92",[96,43.833]],["parent/92",[91,4.836]],["name/93",[14,21.602]],["parent/93",[97,5.795]],["name/94",[98,41.252]],["parent/94",[]],["name/95",[99,43.833]],["parent/95",[98,4.551]],["name/96",[14,21.602]],["parent/96",[100,5.795]],["name/97",[101,47.288]],["parent/97",[98,4.551]],["name/98",[99,43.833]],["parent/98",[102,4.551]],["name/99",[103,52.533]],["parent/99",[102,4.551]],["name/100",[45,43.833]],["parent/100",[102,4.551]],["name/101",[6,39.192]],["parent/101",[102,4.551]],["name/102",[104,43.833]],["parent/102",[98,4.551]],["name/103",[14,21.602]],["parent/103",[105,5.795]],["name/104",[92,27.911]],["parent/104",[]],["name/105",[106,39.192]],["parent/105",[]],["name/106",[13,41.252]],["parent/106",[106,4.324]],["name/107",[14,21.602]],["parent/107",[107,5.795]],["name/108",[6,39.192]],["parent/108",[106,4.324]],["name/109",[108,52.533]],["parent/109",[109,4.134]],["name/110",[45,43.833]],["parent/110",[109,4.134]],["name/111",[110,52.533]],["parent/111",[109,4.134]],["name/112",[40,47.288]],["parent/112",[109,4.134]],["name/113",[42,47.288]],["parent/113",[109,4.134]],["name/114",[43,47.288]],["parent/114",[109,4.134]],["name/115",[111,47.288]],["parent/115",[106,4.324]],["name/116",[6,39.192]],["parent/116",[112,4.836]],["name/117",[83,41.252]],["parent/117",[112,4.836]],["name/118",[13,41.252]],["parent/118",[112,4.836]],["name/119",[113,43.833]],["parent/119",[106,4.324]],["name/120",[14,21.602]],["parent/120",[114,5.795]],["name/121",[115,43.833]],["parent/121",[]],["name/122",[116,47.288]],["parent/122",[115,4.836]],["name/123",[83,41.252]],["parent/123",[117,5.795]],["name/124",[118,43.833]],["parent/124",[115,4.836]],["name/125",[14,21.602]],["parent/125",[119,5.795]],["name/126",[120,41.252]],["parent/126",[]],["name/127",[121,43.833]],["parent/127",[120,4.551]],["name/128",[14,21.602]],["parent/128",[122,5.795]],["name/129",[123,47.288]],["parent/129",[120,4.551]],["name/130",[14,21.602]],["parent/130",[124,5.795]],["name/131",[125,52.533]],["parent/131",[126,5.217]],["name/132",[121,43.833]],["parent/132",[126,5.217]],["name/133",[127,43.833]],["parent/133",[120,4.551]],["name/134",[14,21.602]],["parent/134",[128,5.795]],["name/135",[129,17.036,130,17.036,131,17.036,132,17.036,133,18.379]],["parent/135",[]],["name/136",[134,43.833]],["parent/136",[129,2.082,130,2.082,131,2.082,132,2.082,133,2.246]],["name/137",[14,21.602]],["parent/137",[129,2.082,130,2.082,131,2.082,132,2.082,135,2.495]],["name/138",[136,36.007]],["parent/138",[]],["name/139",[80,10.943,81,14.506,137,13.75,138,20.11]],["parent/139",[]],["name/140",[139,43.833]],["parent/140",[80,1.321,81,1.751,137,1.66,138,2.428]],["name/141",[14,21.602]],["parent/141",[80,1.321,137,1.66,138,2.428,140,2.909]],["name/142",[79,11.558,80,10.943,81,14.506,137,13.75]],["parent/142",[]],["name/143",[141,47.288]],["parent/143",[79,1.395,80,1.321,81,1.751,137,1.66]],["name/144",[142,47.288]],["parent/144",[79,1.395,80,1.321,81,1.751,137,1.66]],["name/145",[14,21.602]],["parent/145",[79,1.395,80,1.321,137,1.66,143,2.909]],["name/146",[82,41.252]],["parent/146",[79,1.395,80,1.321,81,1.751,137,1.66]],["name/147",[14,21.602]],["parent/147",[79,1.395,80,1.321,84,2.076,137,1.66]],["name/148",[144,52.533]],["parent/148",[79,1.395,80,1.321,137,1.66,145,2.619]],["name/149",[83,41.252]],["parent/149",[79,1.395,80,1.321,137,1.66,145,2.619]],["name/150",[89,39.192]],["parent/150",[79,1.395,80,1.321,81,1.751,137,1.66]],["name/151",[14,21.602]],["parent/151",[79,1.395,80,1.321,90,2.619,137,1.66]],["name/152",[146,43.833]],["parent/152",[]],["name/153",[147,52.533]],["parent/153",[146,4.836]],["name/154",[148,43.833]],["parent/154",[149,3.591]],["name/155",[150,43.833]],["parent/155",[149,3.591]],["name/156",[113,43.833]],["parent/156",[149,3.591]],["name/157",[104,43.833]],["parent/157",[149,3.591]],["name/158",[118,43.833]],["parent/158",[149,3.591]],["name/159",[127,43.833]],["parent/159",[149,3.591]],["name/160",[139,43.833]],["parent/160",[149,3.591]],["name/161",[89,39.192]],["parent/161",[149,3.591]],["name/162",[134,43.833]],["parent/162",[149,3.591]],["name/163",[96,43.833]],["parent/163",[149,3.591]],["name/164",[151,52.533]],["parent/164",[146,4.836]],["name/165",[14,21.602]],["parent/165",[152,5.795]],["name/166",[153,15.983,154,17.219,155,21.938]],["parent/166",[]],["name/167",[156,47.288]],["parent/167",[153,1.896,154,2.043,155,2.603]],["name/168",[14,21.602]],["parent/168",[153,1.896,154,2.043,157,3.489]],["name/169",[158,47.288]],["parent/169",[153,1.896,154,2.043,155,2.603]],["name/170",[159,52.533]],["parent/170",[153,1.896,154,2.043,160,2.739]],["name/171",[161,52.533]],["parent/171",[153,1.896,154,2.043,160,2.739]],["name/172",[156,47.288]],["parent/172",[153,1.896,154,2.043,160,2.739]],["name/173",[6,39.192]],["parent/173",[153,1.896,154,2.043,160,2.739]],["name/174",[162,47.288]],["parent/174",[153,1.896,154,2.043,155,2.603]],["name/175",[163,47.288]],["parent/175",[153,1.896,154,2.043,164,3.489]],["name/176",[150,43.833]],["parent/176",[153,1.896,154,2.043,155,2.603]],["name/177",[14,21.602]],["parent/177",[153,1.896,154,2.043,165,3.489]],["name/178",[4,22.079,153,20.494]],["parent/178",[]],["name/179",[148,43.833]],["parent/179",[4,2.55,153,2.367]],["name/180",[14,21.602]],["parent/180",[153,2.367,166,4.355]],["name/181",[4,30.762]],["parent/181",[]],["name/182",[167,43.833]],["parent/182",[]],["name/183",[168,47.288]],["parent/183",[167,4.836]],["name/184",[77,43.833]],["parent/184",[167,4.836]],["name/185",[69,39.192]],["parent/185",[169,3.972]],["name/186",[52,30.762]],["parent/186",[169,3.972]],["name/187",[170,52.533]],["parent/187",[169,3.972]],["name/188",[163,47.288]],["parent/188",[169,3.972]],["name/189",[171,52.533]],["parent/189",[169,3.972]],["name/190",[172,52.533]],["parent/190",[169,3.972]],["name/191",[173,52.533]],["parent/191",[169,3.972]],["name/192",[174,41.252]],["parent/192",[]],["name/193",[175,52.533]],["parent/193",[174,4.551]],["name/194",[176,52.533]],["parent/194",[174,4.551]],["name/195",[69,39.192]],["parent/195",[177,5.217]],["name/196",[178,47.288]],["parent/196",[177,5.217]],["name/197",[179,52.533]],["parent/197",[174,4.551]],["name/198",[69,39.192]],["parent/198",[180,4.836]],["name/199",[71,47.288]],["parent/199",[180,4.836]],["name/200",[178,47.288]],["parent/200",[180,4.836]],["name/201",[181,47.288]],["parent/201",[]],["name/202",[77,43.833]],["parent/202",[181,5.217]],["name/203",[182,52.533]],["parent/203",[50,3.488]],["name/204",[14,21.602]],["parent/204",[50,3.488]],["name/205",[183,52.533]],["parent/205",[50,3.488]],["name/206",[184,52.533]],["parent/206",[50,3.488]],["name/207",[75,47.288]],["parent/207",[50,3.488]],["name/208",[72,47.288]],["parent/208",[50,3.488]],["name/209",[53,47.288]],["parent/209",[50,3.488]],["name/210",[68,47.288]],["parent/210",[50,3.488]],["name/211",[89,39.192]],["parent/211",[50,3.488]],["name/212",[82,41.252]],["parent/212",[50,3.488]],["name/213",[104,43.833]],["parent/213",[92,3.079]],["name/214",[101,47.288]],["parent/214",[92,3.079]],["name/215",[99,43.833]],["parent/215",[92,3.079]],["name/216",[113,43.833]],["parent/216",[92,3.079]],["name/217",[111,47.288]],["parent/217",[92,3.079]],["name/218",[13,41.252]],["parent/218",[92,3.079]],["name/219",[118,43.833]],["parent/219",[92,3.079]],["name/220",[116,47.288]],["parent/220",[92,3.079]],["name/221",[127,43.833]],["parent/221",[92,3.079]],["name/222",[123,47.288]],["parent/222",[92,3.079]],["name/223",[121,43.833]],["parent/223",[92,3.079]],["name/224",[92,27.911]],["parent/224",[92,3.079]],["name/225",[96,43.833]],["parent/225",[92,3.079]],["name/226",[139,43.833]],["parent/226",[136,3.972]],["name/227",[141,47.288]],["parent/227",[136,3.972]],["name/228",[89,39.192]],["parent/228",[136,3.972]],["name/229",[82,41.252]],["parent/229",[136,3.972]],["name/230",[142,47.288]],["parent/230",[136,3.972]],["name/231",[134,43.833]],["parent/231",[136,3.972]],["name/232",[4,30.762]],["parent/232",[4,3.394]],["name/233",[168,47.288]],["parent/233",[4,3.394]],["name/234",[148,43.833]],["parent/234",[4,3.394]],["name/235",[150,43.833]],["parent/235",[4,3.394]],["name/236",[158,47.288]],["parent/236",[4,3.394]],["name/237",[162,47.288]],["parent/237",[4,3.394]],["name/238",[185,52.533]],["parent/238",[4,3.394]],["name/239",[69,39.192]],["parent/239",[186,3.591]],["name/240",[187,52.533]],["parent/240",[186,3.591]],["name/241",[188,52.533]],["parent/241",[186,3.591]],["name/242",[189,52.533]],["parent/242",[186,3.591]],["name/243",[190,52.533]],["parent/243",[186,3.591]],["name/244",[191,52.533]],["parent/244",[186,3.591]],["name/245",[192,52.533]],["parent/245",[186,3.591]],["name/246",[193,52.533]],["parent/246",[186,3.591]],["name/247",[194,52.533]],["parent/247",[186,3.591]],["name/248",[195,52.533]],["parent/248",[186,3.591]]],"invertedIndex":[["__type",{"_index":14,"name":{"13":{},"20":{},"43":{},"59":{},"64":{},"70":{},"72":{},"74":{},"79":{},"81":{},"85":{},"93":{},"96":{},"103":{},"107":{},"120":{},"125":{},"128":{},"130":{},"134":{},"137":{},"141":{},"145":{},"147":{},"151":{},"165":{},"168":{},"177":{},"180":{},"204":{}},"parent":{}}],["absoluteduration",{"_index":29,"name":{"27":{}},"parent":{}}],["access",{"_index":154,"name":{"166":{}},"parent":{"167":{},"168":{},"169":{},"170":{},"171":{},"172":{},"173":{},"174":{},"175":{},"176":{},"177":{}}}],["accesstoken",{"_index":163,"name":{"175":{},"188":{}},"parent":{}}],["accesstokenerror",{"_index":176,"name":{"194":{}},"parent":{}}],["accesstokenexpiresat",{"_index":172,"name":{"190":{}},"parent":{}}],["accesstokenrequest",{"_index":158,"name":{"169":{},"236":{}},"parent":{}}],["accesstokenscope",{"_index":171,"name":{"189":{}},"parent":{}}],["aftercallback",{"_index":99,"name":{"95":{},"98":{},"215":{}},"parent":{}}],["afterrefetch",{"_index":121,"name":{"127":{},"132":{},"223":{}},"parent":{}}],["afterrefresh",{"_index":156,"name":{"167":{},"172":{}},"parent":{}}],["api",{"_index":138,"name":{"139":{}},"parent":{"140":{},"141":{}}}],["auth",{"_index":80,"name":{"75":{},"139":{},"142":{}},"parent":{"76":{},"77":{},"78":{},"79":{},"80":{},"81":{},"82":{},"83":{},"84":{},"85":{},"140":{},"141":{},"143":{},"144":{},"145":{},"146":{},"147":{},"148":{},"149":{},"150":{},"151":{}}}],["auth0logout",{"_index":5,"name":{"4":{}},"parent":{}}],["authorizationparameters",{"_index":39,"name":{"36":{}},"parent":{}}],["authorizationparams",{"_index":6,"name":{"5":{},"101":{},"108":{},"116":{},"173":{}},"parent":{}}],["baseconfig",{"_index":1,"name":{"1":{}},"parent":{}}],["baseurl",{"_index":7,"name":{"6":{}},"parent":{}}],["callback",{"_index":23,"name":{"22":{},"90":{}},"parent":{}}],["callbackoptions",{"_index":101,"name":{"97":{},"214":{}},"parent":{}}],["checksession",{"_index":67,"name":{"63":{}},"parent":{}}],["claims",{"_index":168,"name":{"183":{},"233":{}},"parent":{}}],["clientid",{"_index":8,"name":{"7":{}},"parent":{}}],["clientsecret",{"_index":9,"name":{"8":{}},"parent":{}}],["clocktolerance",{"_index":10,"name":{"9":{}},"parent":{}}],["code",{"_index":178,"name":{"196":{},"200":{}},"parent":{}}],["config",{"_index":0,"name":{"0":{}},"parent":{"1":{},"23":{},"29":{},"36":{},"40":{},"46":{}}}],["config.authorizationparameters",{"_index":41,"name":{},"parent":{"37":{},"38":{},"39":{}}}],["config.baseconfig",{"_index":3,"name":{},"parent":{"2":{},"3":{},"4":{},"5":{},"6":{},"7":{},"8":{},"9":{},"10":{},"11":{},"12":{},"13":{},"14":{},"15":{},"16":{},"17":{},"18":{},"19":{},"20":{}}}],["config.baseconfig.__type",{"_index":22,"name":{},"parent":{"21":{},"22":{}}}],["config.cookieconfig",{"_index":33,"name":{},"parent":{"30":{},"31":{},"32":{},"33":{},"34":{},"35":{}}}],["config.nextconfig",{"_index":46,"name":{},"parent":{"41":{},"42":{},"43":{},"45":{}}}],["config.nextconfig.__type",{"_index":48,"name":{},"parent":{"44":{}}}],["config.sessionconfig",{"_index":26,"name":{},"parent":{"24":{},"25":{},"26":{},"27":{},"28":{}}}],["configparameters",{"_index":49,"name":{"46":{}},"parent":{}}],["configprovider",{"_index":182,"name":{"203":{}},"parent":{}}],["configproviderprops",{"_index":183,"name":{"205":{}},"parent":{}}],["constructor",{"_index":69,"name":{"66":{},"185":{},"195":{},"198":{},"239":{}},"parent":{}}],["cookie",{"_index":30,"name":{"28":{}},"parent":{}}],["cookieconfig",{"_index":31,"name":{"29":{}},"parent":{}}],["create",{"_index":189,"name":{"242":{}},"parent":{}}],["default",{"_index":77,"name":{"73":{},"184":{},"202":{}},"parent":{}}],["delete",{"_index":190,"name":{"243":{}},"parent":{}}],["domain",{"_index":32,"name":{"30":{}},"parent":{}}],["email",{"_index":54,"name":{"50":{}},"parent":{}}],["email_verified",{"_index":56,"name":{"51":{}},"parent":{}}],["enabletelemetry",{"_index":12,"name":{"11":{}},"parent":{}}],["error",{"_index":65,"name":{"61":{}},"parent":{}}],["fromtokenset",{"_index":195,"name":{"248":{}},"parent":{}}],["frontend",{"_index":50,"name":{"47":{}},"parent":{"203":{},"204":{},"205":{},"206":{},"207":{},"208":{},"209":{},"210":{},"211":{},"212":{}}}],["frontend/use",{"_index":51,"name":{"48":{}},"parent":{"49":{},"50":{},"51":{},"52":{},"53":{},"54":{},"55":{},"56":{},"57":{},"58":{},"59":{},"60":{},"61":{},"62":{},"63":{},"64":{},"65":{},"66":{},"67":{},"68":{},"69":{},"70":{},"71":{},"72":{},"73":{},"74":{}}}],["frontend/with",{"_index":78,"name":{"75":{}},"parent":{"76":{},"77":{},"78":{},"79":{},"80":{},"81":{},"82":{},"83":{},"84":{},"85":{}}}],["get",{"_index":194,"name":{"247":{}},"parent":{}}],["getaccesstoken",{"_index":150,"name":{"155":{},"176":{},"235":{}},"parent":{}}],["getaccesstokenresult",{"_index":162,"name":{"174":{},"237":{}},"parent":{}}],["getidtoken",{"_index":192,"name":{"245":{}},"parent":{}}],["getloginstate",{"_index":13,"name":{"12":{},"106":{},"118":{},"218":{}},"parent":{}}],["getserversideprops",{"_index":144,"name":{"148":{}},"parent":{}}],["getserversidepropsresultwithsession",{"_index":141,"name":{"143":{},"227":{}},"parent":{}}],["getserversidepropswrapper",{"_index":134,"name":{"136":{},"162":{},"231":{}},"parent":{}}],["getsession",{"_index":148,"name":{"154":{},"179":{},"234":{}},"parent":{}}],["handleauth",{"_index":96,"name":{"92":{},"163":{},"225":{}},"parent":{}}],["handlecallback",{"_index":104,"name":{"102":{},"157":{},"213":{}},"parent":{}}],["handlelogin",{"_index":113,"name":{"119":{},"156":{},"216":{}},"parent":{}}],["handlelogout",{"_index":118,"name":{"124":{},"158":{},"219":{}},"parent":{}}],["handleprofile",{"_index":127,"name":{"133":{},"159":{},"221":{}},"parent":{}}],["handlererror",{"_index":179,"name":{"197":{}},"parent":{}}],["handlers",{"_index":92,"name":{"87":{},"104":{},"224":{}},"parent":{"213":{},"214":{},"215":{},"216":{},"217":{},"218":{},"219":{},"220":{},"221":{},"222":{},"223":{},"224":{},"225":{}}}],["handlers/auth",{"_index":91,"name":{"86":{}},"parent":{"87":{},"92":{}}}],["handlers/auth.handleauth",{"_index":97,"name":{},"parent":{"93":{}}}],["handlers/auth.handlers",{"_index":93,"name":{},"parent":{"88":{},"89":{},"90":{},"91":{}}}],["handlers/callback",{"_index":98,"name":{"94":{}},"parent":{"95":{},"97":{},"102":{}}}],["handlers/callback.aftercallback",{"_index":100,"name":{},"parent":{"96":{}}}],["handlers/callback.callbackoptions",{"_index":102,"name":{},"parent":{"98":{},"99":{},"100":{},"101":{}}}],["handlers/callback.handlecallback",{"_index":105,"name":{},"parent":{"103":{}}}],["handlers/login",{"_index":106,"name":{"105":{}},"parent":{"106":{},"108":{},"115":{},"119":{}}}],["handlers/login.authorizationparams",{"_index":109,"name":{},"parent":{"109":{},"110":{},"111":{},"112":{},"113":{},"114":{}}}],["handlers/login.getloginstate",{"_index":107,"name":{},"parent":{"107":{}}}],["handlers/login.handlelogin",{"_index":114,"name":{},"parent":{"120":{}}}],["handlers/login.loginoptions",{"_index":112,"name":{},"parent":{"116":{},"117":{},"118":{}}}],["handlers/logout",{"_index":115,"name":{"121":{}},"parent":{"122":{},"124":{}}}],["handlers/logout.handlelogout",{"_index":119,"name":{},"parent":{"125":{}}}],["handlers/logout.logoutoptions",{"_index":117,"name":{},"parent":{"123":{}}}],["handlers/profile",{"_index":120,"name":{"126":{}},"parent":{"127":{},"129":{},"133":{}}}],["handlers/profile.afterrefetch",{"_index":122,"name":{},"parent":{"128":{}}}],["handlers/profile.handleprofile",{"_index":128,"name":{},"parent":{"134":{}}}],["handlers/profile.profileoptions",{"_index":124,"name":{},"parent":{"130":{}}}],["handlers/profile.profileoptions.__type",{"_index":126,"name":{},"parent":{"131":{},"132":{}}}],["helpers",{"_index":136,"name":{"138":{}},"parent":{"226":{},"227":{},"228":{},"229":{},"230":{},"231":{}}}],["helpers/get",{"_index":129,"name":{"135":{}},"parent":{"136":{},"137":{}}}],["helpers/with",{"_index":137,"name":{"139":{},"142":{}},"parent":{"140":{},"141":{},"143":{},"144":{},"145":{},"146":{},"147":{},"148":{},"149":{},"150":{},"151":{}}}],["htmlsafe",{"_index":175,"name":{"193":{}},"parent":{}}],["httponly",{"_index":36,"name":{"33":{}},"parent":{}}],["httptimeout",{"_index":11,"name":{"10":{}},"parent":{}}],["identityclaimfilter",{"_index":15,"name":{"14":{},"45":{}},"parent":{}}],["idplogout",{"_index":16,"name":{"15":{}},"parent":{}}],["idtoken",{"_index":170,"name":{"187":{}},"parent":{}}],["idtokensigningalg",{"_index":17,"name":{"16":{}},"parent":{}}],["init",{"_index":187,"name":{"240":{}},"parent":{}}],["initauth0",{"_index":151,"name":{"164":{}},"parent":{}}],["instance",{"_index":146,"name":{"152":{}},"parent":{"153":{},"164":{}}}],["instance.initauth0",{"_index":152,"name":{},"parent":{"165":{}}}],["instance.signinwithauth0",{"_index":149,"name":{},"parent":{"154":{},"155":{},"156":{},"157":{},"158":{},"159":{},"160":{},"161":{},"162":{},"163":{}}}],["invitation",{"_index":108,"name":{"109":{}},"parent":{}}],["isauthenticated",{"_index":191,"name":{"244":{}},"parent":{}}],["isloading",{"_index":66,"name":{"62":{}},"parent":{}}],["issuerbaseurl",{"_index":18,"name":{"17":{}},"parent":{}}],["legacysamesitecookie",{"_index":19,"name":{"18":{}},"parent":{}}],["login",{"_index":47,"name":{"44":{},"88":{}},"parent":{}}],["loginoptions",{"_index":111,"name":{"115":{},"217":{}},"parent":{}}],["logout",{"_index":94,"name":{"89":{}},"parent":{}}],["logoutoptions",{"_index":116,"name":{"122":{},"220":{}},"parent":{}}],["name",{"_index":25,"name":{"24":{},"52":{}},"parent":{}}],["nextconfig",{"_index":44,"name":{"40":{}},"parent":{}}],["nickname",{"_index":57,"name":{"53":{}},"parent":{}}],["onerror",{"_index":86,"name":{"80":{}},"parent":{}}],["onredirecting",{"_index":85,"name":{"78":{}},"parent":{}}],["org_id",{"_index":61,"name":{"57":{}},"parent":{}}],["organization",{"_index":45,"name":{"41":{},"100":{},"110":{}},"parent":{}}],["page",{"_index":79,"name":{"75":{},"142":{}},"parent":{"76":{},"77":{},"78":{},"79":{},"80":{},"81":{},"82":{},"83":{},"84":{},"85":{},"143":{},"144":{},"145":{},"146":{},"147":{},"148":{},"149":{},"150":{},"151":{}}}],["pageroute",{"_index":142,"name":{"144":{},"230":{}},"parent":{}}],["path",{"_index":34,"name":{"31":{}},"parent":{}}],["picture",{"_index":58,"name":{"54":{}},"parent":{}}],["postlogoutredirect",{"_index":21,"name":{"21":{}},"parent":{}}],["profile",{"_index":95,"name":{"91":{}},"parent":{}}],["profileoptions",{"_index":123,"name":{"129":{},"222":{}},"parent":{}}],["props",{"_index":132,"name":{"135":{}},"parent":{"136":{},"137":{}}}],["redirecturi",{"_index":103,"name":{"99":{}},"parent":{}}],["refetch",{"_index":125,"name":{"131":{}},"parent":{}}],["refresh",{"_index":161,"name":{"171":{}},"parent":{}}],["refreshtoken",{"_index":173,"name":{"191":{}},"parent":{}}],["requesterror",{"_index":68,"name":{"65":{},"210":{}},"parent":{}}],["required",{"_index":81,"name":{"75":{},"139":{},"142":{}},"parent":{"76":{},"82":{},"84":{},"140":{},"143":{},"144":{},"146":{},"150":{}}}],["required.pageroute",{"_index":143,"name":{},"parent":{"145":{}}}],["required.userprops",{"_index":88,"name":{},"parent":{"83":{}}}],["required.withapiauthrequired",{"_index":140,"name":{},"parent":{"141":{}}}],["required.withpageauthrequired",{"_index":90,"name":{},"parent":{"85":{},"151":{}}}],["required.withpageauthrequiredoptions",{"_index":84,"name":{},"parent":{"77":{},"78":{},"79":{},"80":{},"81":{},"147":{}}}],["required.withpageauthrequiredoptions.__type",{"_index":145,"name":{},"parent":{"148":{},"149":{}}}],["response_mode",{"_index":42,"name":{"38":{},"113":{}},"parent":{}}],["response_type",{"_index":43,"name":{"39":{},"114":{}},"parent":{}}],["returnto",{"_index":83,"name":{"77":{},"117":{},"123":{},"149":{}},"parent":{}}],["rolling",{"_index":27,"name":{"25":{}},"parent":{}}],["rollingduration",{"_index":28,"name":{"26":{}},"parent":{}}],["routes",{"_index":20,"name":{"19":{},"42":{}},"parent":{}}],["samesite",{"_index":38,"name":{"35":{}},"parent":{}}],["save",{"_index":188,"name":{"241":{}},"parent":{}}],["scope",{"_index":40,"name":{"37":{},"112":{}},"parent":{}}],["scopes",{"_index":159,"name":{"170":{}},"parent":{}}],["screen_hint",{"_index":110,"name":{"111":{}},"parent":{}}],["secret",{"_index":2,"name":{"2":{}},"parent":{}}],["secure",{"_index":37,"name":{"34":{}},"parent":{}}],["server",{"_index":130,"name":{"135":{}},"parent":{"136":{},"137":{}}}],["session",{"_index":4,"name":{"3":{},"178":{},"181":{},"232":{}},"parent":{"179":{},"232":{},"233":{},"234":{},"235":{},"236":{},"237":{},"238":{}}}],["session.getsession",{"_index":166,"name":{},"parent":{"180":{}}}],["session.sessioncache",{"_index":186,"name":{},"parent":{"239":{},"240":{},"241":{},"242":{},"243":{},"244":{},"245":{},"246":{},"247":{},"248":{}}}],["session/get",{"_index":153,"name":{"166":{},"178":{}},"parent":{"167":{},"168":{},"169":{},"170":{},"171":{},"172":{},"173":{},"174":{},"175":{},"176":{},"177":{},"179":{},"180":{}}}],["session/session",{"_index":167,"name":{"182":{}},"parent":{"183":{},"184":{}}}],["session/session.default",{"_index":169,"name":{},"parent":{"185":{},"186":{},"187":{},"188":{},"189":{},"190":{},"191":{}}}],["sessioncache",{"_index":185,"name":{"238":{}},"parent":{}}],["sessionconfig",{"_index":24,"name":{"23":{}},"parent":{}}],["set",{"_index":193,"name":{"246":{}},"parent":{}}],["side",{"_index":131,"name":{"135":{}},"parent":{"136":{},"137":{}}}],["signinwithauth0",{"_index":147,"name":{"153":{}},"parent":{}}],["status",{"_index":71,"name":{"67":{},"199":{}},"parent":{}}],["sub",{"_index":59,"name":{"55":{}},"parent":{}}],["token",{"_index":155,"name":{"166":{}},"parent":{"167":{},"169":{},"174":{},"176":{}}}],["token.accesstokenrequest",{"_index":160,"name":{},"parent":{"170":{},"171":{},"172":{},"173":{}}}],["token.afterrefresh",{"_index":157,"name":{},"parent":{"168":{}}}],["token.getaccesstoken",{"_index":165,"name":{},"parent":{"177":{}}}],["token.getaccesstokenresult",{"_index":164,"name":{},"parent":{"175":{}}}],["transient",{"_index":35,"name":{"32":{}},"parent":{}}],["updated_at",{"_index":60,"name":{"56":{}},"parent":{}}],["useconfig",{"_index":184,"name":{"206":{}},"parent":{}}],["user",{"_index":52,"name":{"48":{},"60":{},"83":{},"186":{}},"parent":{"49":{},"58":{},"65":{},"68":{},"69":{},"71":{},"73":{},"74":{}}}],["user.requesterror",{"_index":70,"name":{},"parent":{"66":{},"67":{}}}],["user.usercontext",{"_index":63,"name":{},"parent":{"59":{}}}],["user.usercontext.__type",{"_index":64,"name":{},"parent":{"60":{},"61":{},"62":{},"63":{},"64":{}}}],["user.userprofile",{"_index":55,"name":{},"parent":{"50":{},"51":{},"52":{},"53":{},"54":{},"55":{},"56":{},"57":{}}}],["user.userprovider",{"_index":76,"name":{},"parent":{"72":{}}}],["user.useuser",{"_index":74,"name":{},"parent":{"70":{}}}],["usercontext",{"_index":62,"name":{"58":{}},"parent":{}}],["userprofile",{"_index":53,"name":{"49":{},"209":{}},"parent":{}}],["userprops",{"_index":87,"name":{"82":{}},"parent":{}}],["userprovider",{"_index":75,"name":{"71":{},"207":{}},"parent":{}}],["userproviderprops",{"_index":72,"name":{"68":{},"208":{}},"parent":{}}],["useuser",{"_index":73,"name":{"69":{}},"parent":{}}],["utils/errors",{"_index":174,"name":{"192":{}},"parent":{"193":{},"194":{},"197":{}}}],["utils/errors.accesstokenerror",{"_index":177,"name":{},"parent":{"195":{},"196":{}}}],["utils/errors.handlererror",{"_index":180,"name":{},"parent":{"198":{},"199":{},"200":{}}}],["version",{"_index":181,"name":{"201":{}},"parent":{"202":{}}}],["withapiauthrequired",{"_index":139,"name":{"140":{},"160":{},"226":{}},"parent":{}}],["withpageauthrequired",{"_index":89,"name":{"84":{},"150":{},"161":{},"211":{},"228":{}},"parent":{}}],["withpageauthrequiredoptions",{"_index":82,"name":{"76":{},"146":{},"212":{},"229":{}},"parent":{}}],["wrapper",{"_index":133,"name":{"135":{}},"parent":{"136":{}}}],["wrapper.getserversidepropswrapper",{"_index":135,"name":{},"parent":{"137":{}}}]],"pipeline":[]}} \ No newline at end of file +window.searchData = {"kinds":{"1":"Module","4":"Enumeration","16":"Enumeration member","64":"Function","128":"Class","256":"Interface","512":"Constructor","1024":"Property","2048":"Method","65536":"Type literal","4194304":"Type alias","16777216":"Reference"},"rows":[{"id":0,"kind":1,"name":"client","url":"modules/client.html","classes":"tsd-kind-module"},{"id":1,"kind":1,"name":"client/use-user","url":"modules/client_use_user.html","classes":"tsd-kind-module"},{"id":2,"kind":256,"name":"UserProfile","url":"interfaces/client_use_user.userprofile.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"client/use-user"},{"id":3,"kind":1024,"name":"email","url":"interfaces/client_use_user.userprofile.html#email","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"client/use-user.UserProfile"},{"id":4,"kind":1024,"name":"email_verified","url":"interfaces/client_use_user.userprofile.html#email_verified","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"client/use-user.UserProfile"},{"id":5,"kind":1024,"name":"name","url":"interfaces/client_use_user.userprofile.html#name","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"client/use-user.UserProfile"},{"id":6,"kind":1024,"name":"nickname","url":"interfaces/client_use_user.userprofile.html#nickname","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"client/use-user.UserProfile"},{"id":7,"kind":1024,"name":"picture","url":"interfaces/client_use_user.userprofile.html#picture","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"client/use-user.UserProfile"},{"id":8,"kind":1024,"name":"sub","url":"interfaces/client_use_user.userprofile.html#sub","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"client/use-user.UserProfile"},{"id":9,"kind":1024,"name":"updated_at","url":"interfaces/client_use_user.userprofile.html#updated_at","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"client/use-user.UserProfile"},{"id":10,"kind":1024,"name":"org_id","url":"interfaces/client_use_user.userprofile.html#org_id","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"client/use-user.UserProfile"},{"id":11,"kind":4194304,"name":"UserContext","url":"modules/client_use_user.html#usercontext","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"client/use-user"},{"id":12,"kind":65536,"name":"__type","url":"modules/client_use_user.html#usercontext.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"client/use-user.UserContext"},{"id":13,"kind":1024,"name":"user","url":"modules/client_use_user.html#usercontext.__type.user","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"client/use-user.UserContext.__type"},{"id":14,"kind":1024,"name":"error","url":"modules/client_use_user.html#usercontext.__type.error","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"client/use-user.UserContext.__type"},{"id":15,"kind":1024,"name":"isLoading","url":"modules/client_use_user.html#usercontext.__type.isloading","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"client/use-user.UserContext.__type"},{"id":16,"kind":1024,"name":"checkSession","url":"modules/client_use_user.html#usercontext.__type.checksession","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"client/use-user.UserContext.__type"},{"id":17,"kind":65536,"name":"__type","url":"modules/client_use_user.html#usercontext.__type.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-type-literal","parent":"client/use-user.UserContext.__type"},{"id":18,"kind":128,"name":"RequestError","url":"classes/client_use_user.requesterror.html","classes":"tsd-kind-class tsd-parent-kind-module","parent":"client/use-user"},{"id":19,"kind":512,"name":"constructor","url":"classes/client_use_user.requesterror.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite","parent":"client/use-user.RequestError"},{"id":20,"kind":1024,"name":"status","url":"classes/client_use_user.requesterror.html#status","classes":"tsd-kind-property tsd-parent-kind-class","parent":"client/use-user.RequestError"},{"id":21,"kind":4194304,"name":"UserProviderProps","url":"modules/client_use_user.html#userproviderprops","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"client/use-user"},{"id":22,"kind":64,"name":"useUser","url":"modules/client_use_user.html#useuser","classes":"tsd-kind-function tsd-parent-kind-module","parent":"client/use-user"},{"id":23,"kind":4194304,"name":"UserProvider","url":"modules/client_use_user.html#userprovider","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"client/use-user"},{"id":24,"kind":65536,"name":"__type","url":"modules/client_use_user.html#userprovider.__type-2","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"client/use-user.UserProvider"},{"id":25,"kind":1024,"name":"default","url":"modules/client_use_user.html#default","classes":"tsd-kind-property tsd-parent-kind-module","parent":"client/use-user"},{"id":26,"kind":65536,"name":"__type","url":"modules/client_use_user.html#__type-3","classes":"tsd-kind-type-literal tsd-parent-kind-module","parent":"client/use-user"},{"id":27,"kind":1,"name":"client/with-page-auth-required","url":"modules/client_with_page_auth_required.html","classes":"tsd-kind-module"},{"id":28,"kind":256,"name":"WithPageAuthRequiredOptions","url":"interfaces/client_with_page_auth_required.withpageauthrequiredoptions.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"client/with-page-auth-required"},{"id":29,"kind":1024,"name":"returnTo","url":"interfaces/client_with_page_auth_required.withpageauthrequiredoptions.html#returnto","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"client/with-page-auth-required.WithPageAuthRequiredOptions"},{"id":30,"kind":1024,"name":"onRedirecting","url":"interfaces/client_with_page_auth_required.withpageauthrequiredoptions.html#onredirecting","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"client/with-page-auth-required.WithPageAuthRequiredOptions"},{"id":31,"kind":65536,"name":"__type","url":"interfaces/client_with_page_auth_required.withpageauthrequiredoptions.html#__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-interface","parent":"client/with-page-auth-required.WithPageAuthRequiredOptions"},{"id":32,"kind":1024,"name":"onError","url":"interfaces/client_with_page_auth_required.withpageauthrequiredoptions.html#onerror","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"client/with-page-auth-required.WithPageAuthRequiredOptions"},{"id":33,"kind":65536,"name":"__type","url":"interfaces/client_with_page_auth_required.withpageauthrequiredoptions.html#__type","classes":"tsd-kind-type-literal tsd-parent-kind-interface","parent":"client/with-page-auth-required.WithPageAuthRequiredOptions"},{"id":34,"kind":256,"name":"UserProps","url":"interfaces/client_with_page_auth_required.userprops.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"client/with-page-auth-required"},{"id":35,"kind":1024,"name":"user","url":"interfaces/client_with_page_auth_required.userprops.html#user","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"client/with-page-auth-required.UserProps"},{"id":36,"kind":4194304,"name":"WithPageAuthRequired","url":"modules/client_with_page_auth_required.html#withpageauthrequired","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"client/with-page-auth-required"},{"id":37,"kind":65536,"name":"__type","url":"modules/client_with_page_auth_required.html#withpageauthrequired.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias tsd-has-type-parameter","parent":"client/with-page-auth-required.WithPageAuthRequired"},{"id":38,"kind":1,"name":"config","url":"modules/config.html","classes":"tsd-kind-module"},{"id":39,"kind":256,"name":"BaseConfig","url":"interfaces/config.baseconfig.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"config"},{"id":40,"kind":1024,"name":"secret","url":"interfaces/config.baseconfig.html#secret","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.BaseConfig"},{"id":41,"kind":1024,"name":"session","url":"interfaces/config.baseconfig.html#session","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.BaseConfig"},{"id":42,"kind":1024,"name":"auth0Logout","url":"interfaces/config.baseconfig.html#auth0logout","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.BaseConfig"},{"id":43,"kind":1024,"name":"authorizationParams","url":"interfaces/config.baseconfig.html#authorizationparams","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.BaseConfig"},{"id":44,"kind":1024,"name":"baseURL","url":"interfaces/config.baseconfig.html#baseurl","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.BaseConfig"},{"id":45,"kind":1024,"name":"clientID","url":"interfaces/config.baseconfig.html#clientid","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.BaseConfig"},{"id":46,"kind":1024,"name":"clientSecret","url":"interfaces/config.baseconfig.html#clientsecret","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.BaseConfig"},{"id":47,"kind":1024,"name":"clockTolerance","url":"interfaces/config.baseconfig.html#clocktolerance","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.BaseConfig"},{"id":48,"kind":1024,"name":"httpTimeout","url":"interfaces/config.baseconfig.html#httptimeout","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.BaseConfig"},{"id":49,"kind":1024,"name":"enableTelemetry","url":"interfaces/config.baseconfig.html#enabletelemetry","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.BaseConfig"},{"id":50,"kind":1024,"name":"getLoginState","url":"interfaces/config.baseconfig.html#getloginstate","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.BaseConfig"},{"id":51,"kind":65536,"name":"__type","url":"interfaces/config.baseconfig.html#__type","classes":"tsd-kind-type-literal tsd-parent-kind-interface","parent":"config.BaseConfig"},{"id":52,"kind":1024,"name":"identityClaimFilter","url":"interfaces/config.baseconfig.html#identityclaimfilter","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.BaseConfig"},{"id":53,"kind":1024,"name":"idpLogout","url":"interfaces/config.baseconfig.html#idplogout","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.BaseConfig"},{"id":54,"kind":1024,"name":"idTokenSigningAlg","url":"interfaces/config.baseconfig.html#idtokensigningalg","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.BaseConfig"},{"id":55,"kind":1024,"name":"issuerBaseURL","url":"interfaces/config.baseconfig.html#issuerbaseurl","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.BaseConfig"},{"id":56,"kind":1024,"name":"legacySameSiteCookie","url":"interfaces/config.baseconfig.html#legacysamesitecookie","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.BaseConfig"},{"id":57,"kind":1024,"name":"routes","url":"interfaces/config.baseconfig.html#routes","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.BaseConfig"},{"id":58,"kind":65536,"name":"__type","url":"interfaces/config.baseconfig.html#__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-interface","parent":"config.BaseConfig"},{"id":59,"kind":1024,"name":"postLogoutRedirect","url":"interfaces/config.baseconfig.html#__type-1.postlogoutredirect","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"config.BaseConfig.__type"},{"id":60,"kind":1024,"name":"callback","url":"interfaces/config.baseconfig.html#__type-1.callback","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"config.BaseConfig.__type"},{"id":61,"kind":256,"name":"SessionConfig","url":"interfaces/config.sessionconfig.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"config"},{"id":62,"kind":1024,"name":"name","url":"interfaces/config.sessionconfig.html#name","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.SessionConfig"},{"id":63,"kind":1024,"name":"rolling","url":"interfaces/config.sessionconfig.html#rolling","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.SessionConfig"},{"id":64,"kind":1024,"name":"rollingDuration","url":"interfaces/config.sessionconfig.html#rollingduration","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.SessionConfig"},{"id":65,"kind":1024,"name":"absoluteDuration","url":"interfaces/config.sessionconfig.html#absoluteduration","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.SessionConfig"},{"id":66,"kind":1024,"name":"storeIDToken","url":"interfaces/config.sessionconfig.html#storeidtoken","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.SessionConfig"},{"id":67,"kind":1024,"name":"cookie","url":"interfaces/config.sessionconfig.html#cookie","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.SessionConfig"},{"id":68,"kind":256,"name":"CookieConfig","url":"interfaces/config.cookieconfig.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"config"},{"id":69,"kind":1024,"name":"domain","url":"interfaces/config.cookieconfig.html#domain","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.CookieConfig"},{"id":70,"kind":1024,"name":"path","url":"interfaces/config.cookieconfig.html#path","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.CookieConfig"},{"id":71,"kind":1024,"name":"transient","url":"interfaces/config.cookieconfig.html#transient","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.CookieConfig"},{"id":72,"kind":1024,"name":"httpOnly","url":"interfaces/config.cookieconfig.html#httponly","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.CookieConfig"},{"id":73,"kind":1024,"name":"secure","url":"interfaces/config.cookieconfig.html#secure","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.CookieConfig"},{"id":74,"kind":1024,"name":"sameSite","url":"interfaces/config.cookieconfig.html#samesite","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.CookieConfig"},{"id":75,"kind":256,"name":"AuthorizationParameters","url":"interfaces/config.authorizationparameters.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"config"},{"id":76,"kind":1024,"name":"scope","url":"interfaces/config.authorizationparameters.html#scope","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-overwrite","parent":"config.AuthorizationParameters"},{"id":77,"kind":1024,"name":"response_mode","url":"interfaces/config.authorizationparameters.html#response_mode","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-overwrite","parent":"config.AuthorizationParameters"},{"id":78,"kind":1024,"name":"response_type","url":"interfaces/config.authorizationparameters.html#response_type","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-overwrite","parent":"config.AuthorizationParameters"},{"id":79,"kind":256,"name":"NextConfig","url":"interfaces/config.nextconfig.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"config"},{"id":80,"kind":1024,"name":"organization","url":"interfaces/config.nextconfig.html#organization","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.NextConfig"},{"id":81,"kind":1024,"name":"routes","url":"interfaces/config.nextconfig.html#routes","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"config.NextConfig"},{"id":82,"kind":65536,"name":"__type","url":"interfaces/config.nextconfig.html#__type","classes":"tsd-kind-type-literal tsd-parent-kind-interface","parent":"config.NextConfig"},{"id":83,"kind":1024,"name":"callback","url":"interfaces/config.nextconfig.html#__type.callback","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"config.NextConfig.__type"},{"id":84,"kind":1024,"name":"login","url":"interfaces/config.nextconfig.html#__type.login","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"config.NextConfig.__type"},{"id":85,"kind":1024,"name":"unauthorized","url":"interfaces/config.nextconfig.html#__type.unauthorized","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"config.NextConfig.__type"},{"id":86,"kind":1024,"name":"identityClaimFilter","url":"interfaces/config.nextconfig.html#identityclaimfilter","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"config.NextConfig"},{"id":87,"kind":4194304,"name":"ConfigParameters","url":"modules/config.html#configparameters","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"config"},{"id":88,"kind":1,"name":"edge","url":"modules/edge.html","classes":"tsd-kind-module"},{"id":89,"kind":4194304,"name":"Auth0Edge","url":"modules/edge.html#auth0edge","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"edge"},{"id":90,"kind":65536,"name":"__type","url":"modules/edge.html#auth0edge.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"edge.Auth0Edge"},{"id":91,"kind":1024,"name":"withMiddlewareAuthRequired","url":"modules/edge.html#auth0edge.__type.withmiddlewareauthrequired-1","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"edge.Auth0Edge.__type"},{"id":92,"kind":1024,"name":"getSession","url":"modules/edge.html#auth0edge.__type.getsession","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"edge.Auth0Edge.__type"},{"id":93,"kind":4194304,"name":"GetSession","url":"modules/edge.html#getsession-1","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"edge"},{"id":94,"kind":65536,"name":"__type","url":"modules/edge.html#getsession-1.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"edge.GetSession"},{"id":95,"kind":4194304,"name":"InitAuth0","url":"modules/edge.html#initauth0","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"edge"},{"id":96,"kind":65536,"name":"__type","url":"modules/edge.html#initauth0.__type-2","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"edge.InitAuth0"},{"id":97,"kind":64,"name":"initAuth0","url":"modules/edge.html#initauth0-1","classes":"tsd-kind-function tsd-parent-kind-module","parent":"edge"},{"id":98,"kind":64,"name":"getSession","url":"modules/edge.html#getsession-2","classes":"tsd-kind-function tsd-parent-kind-module","parent":"edge"},{"id":99,"kind":64,"name":"withMiddlewareAuthRequired","url":"modules/edge.html#withmiddlewareauthrequired-2","classes":"tsd-kind-function tsd-parent-kind-module","parent":"edge"},{"id":100,"kind":1,"name":"handlers/auth","url":"modules/handlers_auth.html","classes":"tsd-kind-module"},{"id":101,"kind":4194304,"name":"Handlers","url":"modules/handlers_auth.html#handlers","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"handlers/auth"},{"id":102,"kind":4194304,"name":"HandleAuth","url":"modules/handlers_auth.html#handleauth","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"handlers/auth"},{"id":103,"kind":65536,"name":"__type","url":"modules/handlers_auth.html#handleauth.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"handlers/auth.HandleAuth"},{"id":104,"kind":4194304,"name":"OnError","url":"modules/handlers_auth.html#onerror","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"handlers/auth"},{"id":105,"kind":65536,"name":"__type","url":"modules/handlers_auth.html#onerror.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"handlers/auth.OnError"},{"id":106,"kind":1,"name":"handlers/callback","url":"modules/handlers_callback.html","classes":"tsd-kind-module"},{"id":107,"kind":4194304,"name":"AfterCallback","url":"modules/handlers_callback.html#aftercallback","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"handlers/callback"},{"id":108,"kind":65536,"name":"__type","url":"modules/handlers_callback.html#aftercallback.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"handlers/callback.AfterCallback"},{"id":109,"kind":256,"name":"CallbackOptions","url":"interfaces/handlers_callback.callbackoptions.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"handlers/callback"},{"id":110,"kind":1024,"name":"afterCallback","url":"interfaces/handlers_callback.callbackoptions.html#aftercallback","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"handlers/callback.CallbackOptions"},{"id":111,"kind":1024,"name":"redirectUri","url":"interfaces/handlers_callback.callbackoptions.html#redirecturi","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"handlers/callback.CallbackOptions"},{"id":112,"kind":1024,"name":"organization","url":"interfaces/handlers_callback.callbackoptions.html#organization","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"handlers/callback.CallbackOptions"},{"id":113,"kind":1024,"name":"authorizationParams","url":"interfaces/handlers_callback.callbackoptions.html#authorizationparams","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"handlers/callback.CallbackOptions"},{"id":114,"kind":4194304,"name":"CallbackOptionsProvider","url":"modules/handlers_callback.html#callbackoptionsprovider","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"handlers/callback"},{"id":115,"kind":65536,"name":"__type","url":"modules/handlers_callback.html#callbackoptionsprovider.__type-2","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"handlers/callback.CallbackOptionsProvider"},{"id":116,"kind":4194304,"name":"HandleCallback","url":"modules/handlers_callback.html#handlecallback","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"handlers/callback"},{"id":117,"kind":65536,"name":"__type","url":"modules/handlers_callback.html#handlecallback.__type-3","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"handlers/callback.HandleCallback"},{"id":118,"kind":4194304,"name":"CallbackHandler","url":"modules/handlers_callback.html#callbackhandler","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"handlers/callback"},{"id":119,"kind":65536,"name":"__type","url":"modules/handlers_callback.html#callbackhandler.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"handlers/callback.CallbackHandler"},{"id":120,"kind":1,"name":"handlers","url":"modules/handlers.html","classes":"tsd-kind-module"},{"id":121,"kind":1,"name":"handlers/login","url":"modules/handlers_login.html","classes":"tsd-kind-module"},{"id":122,"kind":4194304,"name":"GetLoginState","url":"modules/handlers_login.html#getloginstate","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"handlers/login"},{"id":123,"kind":65536,"name":"__type","url":"modules/handlers_login.html#getloginstate.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"handlers/login.GetLoginState"},{"id":124,"kind":256,"name":"AuthorizationParams","url":"interfaces/handlers_login.authorizationparams.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"handlers/login"},{"id":125,"kind":1024,"name":"connection","url":"interfaces/handlers_login.authorizationparams.html#connection","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"handlers/login.AuthorizationParams"},{"id":126,"kind":1024,"name":"connection_scope","url":"interfaces/handlers_login.authorizationparams.html#connection_scope","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"handlers/login.AuthorizationParams"},{"id":127,"kind":1024,"name":"invitation","url":"interfaces/handlers_login.authorizationparams.html#invitation","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"handlers/login.AuthorizationParams"},{"id":128,"kind":1024,"name":"organization","url":"interfaces/handlers_login.authorizationparams.html#organization","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"handlers/login.AuthorizationParams"},{"id":129,"kind":1024,"name":"screen_hint","url":"interfaces/handlers_login.authorizationparams.html#screen_hint","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"handlers/login.AuthorizationParams"},{"id":130,"kind":1024,"name":"scope","url":"interfaces/handlers_login.authorizationparams.html#scope","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"handlers/login.AuthorizationParams"},{"id":131,"kind":1024,"name":"response_mode","url":"interfaces/handlers_login.authorizationparams.html#response_mode","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"handlers/login.AuthorizationParams"},{"id":132,"kind":1024,"name":"response_type","url":"interfaces/handlers_login.authorizationparams.html#response_type","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"handlers/login.AuthorizationParams"},{"id":133,"kind":256,"name":"LoginOptions","url":"interfaces/handlers_login.loginoptions.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"handlers/login"},{"id":134,"kind":1024,"name":"authorizationParams","url":"interfaces/handlers_login.loginoptions.html#authorizationparams","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"handlers/login.LoginOptions"},{"id":135,"kind":1024,"name":"returnTo","url":"interfaces/handlers_login.loginoptions.html#returnto","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"handlers/login.LoginOptions"},{"id":136,"kind":1024,"name":"getLoginState","url":"interfaces/handlers_login.loginoptions.html#getloginstate","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"handlers/login.LoginOptions"},{"id":137,"kind":4194304,"name":"LoginOptionsProvider","url":"modules/handlers_login.html#loginoptionsprovider","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"handlers/login"},{"id":138,"kind":65536,"name":"__type","url":"modules/handlers_login.html#loginoptionsprovider.__type-3","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"handlers/login.LoginOptionsProvider"},{"id":139,"kind":4194304,"name":"HandleLogin","url":"modules/handlers_login.html#handlelogin","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"handlers/login"},{"id":140,"kind":65536,"name":"__type","url":"modules/handlers_login.html#handlelogin.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"handlers/login.HandleLogin"},{"id":141,"kind":4194304,"name":"LoginHandler","url":"modules/handlers_login.html#loginhandler","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"handlers/login"},{"id":142,"kind":65536,"name":"__type","url":"modules/handlers_login.html#loginhandler.__type-2","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"handlers/login.LoginHandler"},{"id":143,"kind":1,"name":"handlers/logout","url":"modules/handlers_logout.html","classes":"tsd-kind-module"},{"id":144,"kind":256,"name":"LogoutOptions","url":"interfaces/handlers_logout.logoutoptions.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"handlers/logout"},{"id":145,"kind":1024,"name":"returnTo","url":"interfaces/handlers_logout.logoutoptions.html#returnto","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"handlers/logout.LogoutOptions"},{"id":146,"kind":1024,"name":"logoutParams","url":"interfaces/handlers_logout.logoutoptions.html#logoutparams","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"handlers/logout.LogoutOptions"},{"id":147,"kind":65536,"name":"__type","url":"interfaces/handlers_logout.logoutoptions.html#__type","classes":"tsd-kind-type-literal tsd-parent-kind-interface","parent":"handlers/logout.LogoutOptions"},{"id":148,"kind":4194304,"name":"LogoutOptionsProvider","url":"modules/handlers_logout.html#logoutoptionsprovider","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"handlers/logout"},{"id":149,"kind":65536,"name":"__type","url":"modules/handlers_logout.html#logoutoptionsprovider.__type-2","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"handlers/logout.LogoutOptionsProvider"},{"id":150,"kind":4194304,"name":"HandleLogout","url":"modules/handlers_logout.html#handlelogout","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"handlers/logout"},{"id":151,"kind":65536,"name":"__type","url":"modules/handlers_logout.html#handlelogout.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"handlers/logout.HandleLogout"},{"id":152,"kind":4194304,"name":"LogoutHandler","url":"modules/handlers_logout.html#logouthandler","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"handlers/logout"},{"id":153,"kind":65536,"name":"__type","url":"modules/handlers_logout.html#logouthandler.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"handlers/logout.LogoutHandler"},{"id":154,"kind":1,"name":"handlers/profile","url":"modules/handlers_profile.html","classes":"tsd-kind-module"},{"id":155,"kind":4194304,"name":"AfterRefetch","url":"modules/handlers_profile.html#afterrefetch","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"handlers/profile"},{"id":156,"kind":65536,"name":"__type","url":"modules/handlers_profile.html#afterrefetch.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"handlers/profile.AfterRefetch"},{"id":157,"kind":4194304,"name":"ProfileOptions","url":"modules/handlers_profile.html#profileoptions","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"handlers/profile"},{"id":158,"kind":65536,"name":"__type","url":"modules/handlers_profile.html#profileoptions.__type-3","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"handlers/profile.ProfileOptions"},{"id":159,"kind":1024,"name":"refetch","url":"modules/handlers_profile.html#profileoptions.__type-3.refetch","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"handlers/profile.ProfileOptions.__type"},{"id":160,"kind":1024,"name":"afterRefetch","url":"modules/handlers_profile.html#profileoptions.__type-3.afterrefetch-1","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"handlers/profile.ProfileOptions.__type"},{"id":161,"kind":4194304,"name":"ProfileOptionsProvider","url":"modules/handlers_profile.html#profileoptionsprovider","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"handlers/profile"},{"id":162,"kind":65536,"name":"__type","url":"modules/handlers_profile.html#profileoptionsprovider.__type-4","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"handlers/profile.ProfileOptionsProvider"},{"id":163,"kind":4194304,"name":"HandleProfile","url":"modules/handlers_profile.html#handleprofile","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"handlers/profile"},{"id":164,"kind":65536,"name":"__type","url":"modules/handlers_profile.html#handleprofile.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"handlers/profile.HandleProfile"},{"id":165,"kind":4194304,"name":"ProfileHandler","url":"modules/handlers_profile.html#profilehandler","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"handlers/profile"},{"id":166,"kind":65536,"name":"__type","url":"modules/handlers_profile.html#profilehandler.__type-2","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"handlers/profile.ProfileHandler"},{"id":167,"kind":1,"name":"helpers","url":"modules/helpers.html","classes":"tsd-kind-module"},{"id":168,"kind":1,"name":"helpers/testing","url":"modules/helpers_testing.html","classes":"tsd-kind-module"},{"id":169,"kind":4194304,"name":"GenerateSessionCookieConfig","url":"modules/helpers_testing.html#generatesessioncookieconfig","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"helpers/testing"},{"id":170,"kind":64,"name":"generateSessionCookie","url":"modules/helpers_testing.html#generatesessioncookie","classes":"tsd-kind-function tsd-parent-kind-module","parent":"helpers/testing"},{"id":171,"kind":1,"name":"helpers/with-api-auth-required","url":"modules/helpers_with_api_auth_required.html","classes":"tsd-kind-module"},{"id":172,"kind":4194304,"name":"WithApiAuthRequired","url":"modules/helpers_with_api_auth_required.html#withapiauthrequired","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"helpers/with-api-auth-required"},{"id":173,"kind":65536,"name":"__type","url":"modules/helpers_with_api_auth_required.html#withapiauthrequired.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"helpers/with-api-auth-required.WithApiAuthRequired"},{"id":174,"kind":1,"name":"helpers/with-middleware-auth-required","url":"modules/helpers_with_middleware_auth_required.html","classes":"tsd-kind-module"},{"id":175,"kind":4194304,"name":"WithMiddlewareAuthRequired","url":"modules/helpers_with_middleware_auth_required.html#withmiddlewareauthrequired","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"helpers/with-middleware-auth-required"},{"id":176,"kind":65536,"name":"__type","url":"modules/helpers_with_middleware_auth_required.html#withmiddlewareauthrequired.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"helpers/with-middleware-auth-required.WithMiddlewareAuthRequired"},{"id":177,"kind":1,"name":"helpers/with-page-auth-required","url":"modules/helpers_with_page_auth_required.html","classes":"tsd-kind-module"},{"id":178,"kind":4194304,"name":"GetServerSidePropsResultWithSession","url":"modules/helpers_with_page_auth_required.html#getserversidepropsresultwithsession","classes":"tsd-kind-type-alias tsd-parent-kind-module tsd-has-type-parameter","parent":"helpers/with-page-auth-required"},{"id":179,"kind":4194304,"name":"PageRoute","url":"modules/helpers_with_page_auth_required.html#pageroute","classes":"tsd-kind-type-alias tsd-parent-kind-module tsd-has-type-parameter","parent":"helpers/with-page-auth-required"},{"id":180,"kind":65536,"name":"__type","url":"modules/helpers_with_page_auth_required.html#pageroute.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"helpers/with-page-auth-required.PageRoute"},{"id":181,"kind":4194304,"name":"WithPageAuthRequiredOptions","url":"modules/helpers_with_page_auth_required.html#withpageauthrequiredoptions","classes":"tsd-kind-type-alias tsd-parent-kind-module tsd-has-type-parameter","parent":"helpers/with-page-auth-required"},{"id":182,"kind":65536,"name":"__type","url":"modules/helpers_with_page_auth_required.html#withpageauthrequiredoptions.__type-2","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"helpers/with-page-auth-required.WithPageAuthRequiredOptions"},{"id":183,"kind":1024,"name":"getServerSideProps","url":"modules/helpers_with_page_auth_required.html#withpageauthrequiredoptions.__type-2.getserversideprops","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"helpers/with-page-auth-required.WithPageAuthRequiredOptions.__type"},{"id":184,"kind":1024,"name":"returnTo","url":"modules/helpers_with_page_auth_required.html#withpageauthrequiredoptions.__type-2.returnto","classes":"tsd-kind-property tsd-parent-kind-type-literal","parent":"helpers/with-page-auth-required.WithPageAuthRequiredOptions.__type"},{"id":185,"kind":4194304,"name":"WithPageAuthRequired","url":"modules/helpers_with_page_auth_required.html#withpageauthrequired","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"helpers/with-page-auth-required"},{"id":186,"kind":65536,"name":"__type","url":"modules/helpers_with_page_auth_required.html#withpageauthrequired.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias tsd-has-type-parameter","parent":"helpers/with-page-auth-required.WithPageAuthRequired"},{"id":187,"kind":1,"name":"index","url":"modules/index.html","classes":"tsd-kind-module"},{"id":188,"kind":256,"name":"Auth0Server","url":"interfaces/index.auth0server.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"index"},{"id":189,"kind":1024,"name":"getSession","url":"interfaces/index.auth0server.html#getsession","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"index.Auth0Server"},{"id":190,"kind":1024,"name":"updateSession","url":"interfaces/index.auth0server.html#updatesession","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"index.Auth0Server"},{"id":191,"kind":1024,"name":"getAccessToken","url":"interfaces/index.auth0server.html#getaccesstoken","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"index.Auth0Server"},{"id":192,"kind":1024,"name":"handleLogin","url":"interfaces/index.auth0server.html#handlelogin","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"index.Auth0Server"},{"id":193,"kind":1024,"name":"handleCallback","url":"interfaces/index.auth0server.html#handlecallback","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"index.Auth0Server"},{"id":194,"kind":1024,"name":"handleLogout","url":"interfaces/index.auth0server.html#handlelogout","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"index.Auth0Server"},{"id":195,"kind":1024,"name":"handleProfile","url":"interfaces/index.auth0server.html#handleprofile","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"index.Auth0Server"},{"id":196,"kind":1024,"name":"withApiAuthRequired","url":"interfaces/index.auth0server.html#withapiauthrequired","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"index.Auth0Server"},{"id":197,"kind":1024,"name":"withPageAuthRequired","url":"interfaces/index.auth0server.html#withpageauthrequired","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"index.Auth0Server"},{"id":198,"kind":1024,"name":"handleAuth","url":"interfaces/index.auth0server.html#handleauth","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"index.Auth0Server"},{"id":199,"kind":4194304,"name":"InitAuth0","url":"modules/index.html#initauth0","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"index"},{"id":200,"kind":65536,"name":"__type","url":"modules/index.html#initauth0.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"index.InitAuth0"},{"id":201,"kind":64,"name":"initAuth0","url":"modules/index.html#initauth0-1","classes":"tsd-kind-function tsd-parent-kind-module","parent":"index"},{"id":202,"kind":64,"name":"_initAuth","url":"modules/index.html#_initauth","classes":"tsd-kind-function tsd-parent-kind-module","parent":"index"},{"id":203,"kind":64,"name":"getSession","url":"modules/index.html#getsession-1","classes":"tsd-kind-function tsd-parent-kind-module","parent":"index"},{"id":204,"kind":64,"name":"updateSession","url":"modules/index.html#updatesession-1","classes":"tsd-kind-function tsd-parent-kind-module","parent":"index"},{"id":205,"kind":64,"name":"getAccessToken","url":"modules/index.html#getaccesstoken-1","classes":"tsd-kind-function tsd-parent-kind-module","parent":"index"},{"id":206,"kind":64,"name":"withApiAuthRequired","url":"modules/index.html#withapiauthrequired-1","classes":"tsd-kind-function tsd-parent-kind-module","parent":"index"},{"id":207,"kind":64,"name":"withPageAuthRequired","url":"modules/index.html#withpageauthrequired-1","classes":"tsd-kind-function tsd-parent-kind-module tsd-has-type-parameter","parent":"index"},{"id":208,"kind":64,"name":"handleLogin","url":"modules/index.html#handlelogin-1","classes":"tsd-kind-function tsd-parent-kind-module","parent":"index"},{"id":209,"kind":64,"name":"handleLogout","url":"modules/index.html#handlelogout-1","classes":"tsd-kind-function tsd-parent-kind-module","parent":"index"},{"id":210,"kind":64,"name":"handleCallback","url":"modules/index.html#handlecallback-1","classes":"tsd-kind-function tsd-parent-kind-module","parent":"index"},{"id":211,"kind":64,"name":"handleProfile","url":"modules/index.html#handleprofile-1","classes":"tsd-kind-function tsd-parent-kind-module","parent":"index"},{"id":212,"kind":64,"name":"handleAuth","url":"modules/index.html#handleauth-1","classes":"tsd-kind-function tsd-parent-kind-module","parent":"index"},{"id":213,"kind":1,"name":"session/get-access-token","url":"modules/session_get_access_token.html","classes":"tsd-kind-module"},{"id":214,"kind":4194304,"name":"AfterRefresh","url":"modules/session_get_access_token.html#afterrefresh","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"session/get-access-token"},{"id":215,"kind":65536,"name":"__type","url":"modules/session_get_access_token.html#afterrefresh.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"session/get-access-token.AfterRefresh"},{"id":216,"kind":256,"name":"AccessTokenRequest","url":"interfaces/session_get_access_token.accesstokenrequest.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"session/get-access-token"},{"id":217,"kind":1024,"name":"scopes","url":"interfaces/session_get_access_token.accesstokenrequest.html#scopes","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"session/get-access-token.AccessTokenRequest"},{"id":218,"kind":1024,"name":"refresh","url":"interfaces/session_get_access_token.accesstokenrequest.html#refresh","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"session/get-access-token.AccessTokenRequest"},{"id":219,"kind":1024,"name":"afterRefresh","url":"interfaces/session_get_access_token.accesstokenrequest.html#afterrefresh","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"session/get-access-token.AccessTokenRequest"},{"id":220,"kind":1024,"name":"authorizationParams","url":"interfaces/session_get_access_token.accesstokenrequest.html#authorizationparams","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"session/get-access-token.AccessTokenRequest"},{"id":221,"kind":256,"name":"GetAccessTokenResult","url":"interfaces/session_get_access_token.getaccesstokenresult.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"session/get-access-token"},{"id":222,"kind":1024,"name":"accessToken","url":"interfaces/session_get_access_token.getaccesstokenresult.html#accesstoken","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"session/get-access-token.GetAccessTokenResult"},{"id":223,"kind":4194304,"name":"GetAccessToken","url":"modules/session_get_access_token.html#getaccesstoken","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"session/get-access-token"},{"id":224,"kind":65536,"name":"__type","url":"modules/session_get_access_token.html#getaccesstoken.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"session/get-access-token.GetAccessToken"},{"id":225,"kind":1,"name":"session/get-session","url":"modules/session_get_session.html","classes":"tsd-kind-module"},{"id":226,"kind":4194304,"name":"GetSession","url":"modules/session_get_session.html#getsession","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"session/get-session"},{"id":227,"kind":65536,"name":"__type","url":"modules/session_get_session.html#getsession.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"session/get-session.GetSession"},{"id":228,"kind":1,"name":"session","url":"modules/session.html","classes":"tsd-kind-module"},{"id":229,"kind":1,"name":"session/session","url":"modules/session_session.html","classes":"tsd-kind-module"},{"id":230,"kind":256,"name":"Claims","url":"interfaces/session_session.claims.html","classes":"tsd-kind-interface tsd-parent-kind-module","parent":"session/session"},{"id":231,"kind":128,"name":"default","url":"classes/session_session.default.html","classes":"tsd-kind-class tsd-parent-kind-module","parent":"session/session"},{"id":232,"kind":512,"name":"constructor","url":"classes/session_session.default.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"session/session.default"},{"id":233,"kind":1024,"name":"user","url":"classes/session_session.default.html#user","classes":"tsd-kind-property tsd-parent-kind-class","parent":"session/session.default"},{"id":234,"kind":1024,"name":"idToken","url":"classes/session_session.default.html#idtoken","classes":"tsd-kind-property tsd-parent-kind-class","parent":"session/session.default"},{"id":235,"kind":1024,"name":"accessToken","url":"classes/session_session.default.html#accesstoken","classes":"tsd-kind-property tsd-parent-kind-class","parent":"session/session.default"},{"id":236,"kind":1024,"name":"accessTokenScope","url":"classes/session_session.default.html#accesstokenscope","classes":"tsd-kind-property tsd-parent-kind-class","parent":"session/session.default"},{"id":237,"kind":1024,"name":"accessTokenExpiresAt","url":"classes/session_session.default.html#accesstokenexpiresat","classes":"tsd-kind-property tsd-parent-kind-class","parent":"session/session.default"},{"id":238,"kind":1024,"name":"refreshToken","url":"classes/session_session.default.html#refreshtoken","classes":"tsd-kind-property tsd-parent-kind-class","parent":"session/session.default"},{"id":239,"kind":1,"name":"session/update-session","url":"modules/session_update_session.html","classes":"tsd-kind-module"},{"id":240,"kind":4194304,"name":"UpdateSession","url":"modules/session_update_session.html#updatesession","classes":"tsd-kind-type-alias tsd-parent-kind-module","parent":"session/update-session"},{"id":241,"kind":65536,"name":"__type","url":"modules/session_update_session.html#updatesession.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"session/update-session.UpdateSession"},{"id":242,"kind":1,"name":"utils/errors","url":"modules/utils_errors.html","classes":"tsd-kind-module"},{"id":243,"kind":128,"name":"AuthError","url":"classes/utils_errors.autherror.html","classes":"tsd-kind-class tsd-parent-kind-module","parent":"utils/errors"},{"id":244,"kind":512,"name":"constructor","url":"classes/utils_errors.autherror.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite","parent":"utils/errors.AuthError"},{"id":245,"kind":1024,"name":"code","url":"classes/utils_errors.autherror.html#code","classes":"tsd-kind-property tsd-parent-kind-class","parent":"utils/errors.AuthError"},{"id":246,"kind":1024,"name":"name","url":"classes/utils_errors.autherror.html#name","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-overwrite","parent":"utils/errors.AuthError"},{"id":247,"kind":1024,"name":"cause","url":"classes/utils_errors.autherror.html#cause","classes":"tsd-kind-property tsd-parent-kind-class","parent":"utils/errors.AuthError"},{"id":248,"kind":1024,"name":"status","url":"classes/utils_errors.autherror.html#status","classes":"tsd-kind-property tsd-parent-kind-class","parent":"utils/errors.AuthError"},{"id":249,"kind":4,"name":"AccessTokenErrorCode","url":"enums/utils_errors.accesstokenerrorcode.html","classes":"tsd-kind-enum tsd-parent-kind-module","parent":"utils/errors"},{"id":250,"kind":16,"name":"MISSING_SESSION","url":"enums/utils_errors.accesstokenerrorcode.html#missing_session","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"utils/errors.AccessTokenErrorCode"},{"id":251,"kind":16,"name":"MISSING_ACCESS_TOKEN","url":"enums/utils_errors.accesstokenerrorcode.html#missing_access_token","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"utils/errors.AccessTokenErrorCode"},{"id":252,"kind":16,"name":"MISSING_REFRESH_TOKEN","url":"enums/utils_errors.accesstokenerrorcode.html#missing_refresh_token","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"utils/errors.AccessTokenErrorCode"},{"id":253,"kind":16,"name":"EXPIRED_ACCESS_TOKEN","url":"enums/utils_errors.accesstokenerrorcode.html#expired_access_token","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"utils/errors.AccessTokenErrorCode"},{"id":254,"kind":16,"name":"INSUFFICIENT_SCOPE","url":"enums/utils_errors.accesstokenerrorcode.html#insufficient_scope","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"utils/errors.AccessTokenErrorCode"},{"id":255,"kind":16,"name":"FAILED_REFRESH_GRANT","url":"enums/utils_errors.accesstokenerrorcode.html#failed_refresh_grant","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"utils/errors.AccessTokenErrorCode"},{"id":256,"kind":128,"name":"AccessTokenError","url":"classes/utils_errors.accesstokenerror.html","classes":"tsd-kind-class tsd-parent-kind-module","parent":"utils/errors"},{"id":257,"kind":512,"name":"constructor","url":"classes/utils_errors.accesstokenerror.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite","parent":"utils/errors.AccessTokenError"},{"id":258,"kind":1024,"name":"code","url":"classes/utils_errors.accesstokenerror.html#code","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"utils/errors.AccessTokenError"},{"id":259,"kind":1024,"name":"name","url":"classes/utils_errors.accesstokenerror.html#name","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"utils/errors.AccessTokenError"},{"id":260,"kind":1024,"name":"cause","url":"classes/utils_errors.accesstokenerror.html#cause","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"utils/errors.AccessTokenError"},{"id":261,"kind":1024,"name":"status","url":"classes/utils_errors.accesstokenerror.html#status","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"utils/errors.AccessTokenError"},{"id":262,"kind":128,"name":"HandlerError","url":"classes/utils_errors.handlererror.html","classes":"tsd-kind-class tsd-parent-kind-module","parent":"utils/errors"},{"id":263,"kind":512,"name":"constructor","url":"classes/utils_errors.handlererror.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite","parent":"utils/errors.HandlerError"},{"id":264,"kind":1024,"name":"code","url":"classes/utils_errors.handlererror.html#code","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"utils/errors.HandlerError"},{"id":265,"kind":1024,"name":"name","url":"classes/utils_errors.handlererror.html#name","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"utils/errors.HandlerError"},{"id":266,"kind":1024,"name":"cause","url":"classes/utils_errors.handlererror.html#cause","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"utils/errors.HandlerError"},{"id":267,"kind":1024,"name":"status","url":"classes/utils_errors.handlererror.html#status","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"utils/errors.HandlerError"},{"id":268,"kind":128,"name":"CallbackHandlerError","url":"classes/utils_errors.callbackhandlererror.html","classes":"tsd-kind-class tsd-parent-kind-module","parent":"utils/errors"},{"id":269,"kind":1024,"name":"code","url":"classes/utils_errors.callbackhandlererror.html#code-1","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-static","parent":"utils/errors.CallbackHandlerError"},{"id":270,"kind":512,"name":"constructor","url":"classes/utils_errors.callbackhandlererror.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite","parent":"utils/errors.CallbackHandlerError"},{"id":271,"kind":1024,"name":"code","url":"classes/utils_errors.callbackhandlererror.html#code","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"utils/errors.CallbackHandlerError"},{"id":272,"kind":1024,"name":"name","url":"classes/utils_errors.callbackhandlererror.html#name","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"utils/errors.CallbackHandlerError"},{"id":273,"kind":1024,"name":"cause","url":"classes/utils_errors.callbackhandlererror.html#cause","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"utils/errors.CallbackHandlerError"},{"id":274,"kind":1024,"name":"status","url":"classes/utils_errors.callbackhandlererror.html#status","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"utils/errors.CallbackHandlerError"},{"id":275,"kind":128,"name":"LoginHandlerError","url":"classes/utils_errors.loginhandlererror.html","classes":"tsd-kind-class tsd-parent-kind-module","parent":"utils/errors"},{"id":276,"kind":1024,"name":"code","url":"classes/utils_errors.loginhandlererror.html#code-1","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-static","parent":"utils/errors.LoginHandlerError"},{"id":277,"kind":512,"name":"constructor","url":"classes/utils_errors.loginhandlererror.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite","parent":"utils/errors.LoginHandlerError"},{"id":278,"kind":1024,"name":"code","url":"classes/utils_errors.loginhandlererror.html#code","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"utils/errors.LoginHandlerError"},{"id":279,"kind":1024,"name":"name","url":"classes/utils_errors.loginhandlererror.html#name","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"utils/errors.LoginHandlerError"},{"id":280,"kind":1024,"name":"cause","url":"classes/utils_errors.loginhandlererror.html#cause","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"utils/errors.LoginHandlerError"},{"id":281,"kind":1024,"name":"status","url":"classes/utils_errors.loginhandlererror.html#status","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"utils/errors.LoginHandlerError"},{"id":282,"kind":128,"name":"LogoutHandlerError","url":"classes/utils_errors.logouthandlererror.html","classes":"tsd-kind-class tsd-parent-kind-module","parent":"utils/errors"},{"id":283,"kind":1024,"name":"code","url":"classes/utils_errors.logouthandlererror.html#code-1","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-static","parent":"utils/errors.LogoutHandlerError"},{"id":284,"kind":512,"name":"constructor","url":"classes/utils_errors.logouthandlererror.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite","parent":"utils/errors.LogoutHandlerError"},{"id":285,"kind":1024,"name":"code","url":"classes/utils_errors.logouthandlererror.html#code","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"utils/errors.LogoutHandlerError"},{"id":286,"kind":1024,"name":"name","url":"classes/utils_errors.logouthandlererror.html#name","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"utils/errors.LogoutHandlerError"},{"id":287,"kind":1024,"name":"cause","url":"classes/utils_errors.logouthandlererror.html#cause","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"utils/errors.LogoutHandlerError"},{"id":288,"kind":1024,"name":"status","url":"classes/utils_errors.logouthandlererror.html#status","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"utils/errors.LogoutHandlerError"},{"id":289,"kind":128,"name":"ProfileHandlerError","url":"classes/utils_errors.profilehandlererror.html","classes":"tsd-kind-class tsd-parent-kind-module","parent":"utils/errors"},{"id":290,"kind":1024,"name":"code","url":"classes/utils_errors.profilehandlererror.html#code-1","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-static","parent":"utils/errors.ProfileHandlerError"},{"id":291,"kind":512,"name":"constructor","url":"classes/utils_errors.profilehandlererror.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite","parent":"utils/errors.ProfileHandlerError"},{"id":292,"kind":1024,"name":"code","url":"classes/utils_errors.profilehandlererror.html#code","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"utils/errors.ProfileHandlerError"},{"id":293,"kind":1024,"name":"name","url":"classes/utils_errors.profilehandlererror.html#name","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"utils/errors.ProfileHandlerError"},{"id":294,"kind":1024,"name":"cause","url":"classes/utils_errors.profilehandlererror.html#cause","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"utils/errors.ProfileHandlerError"},{"id":295,"kind":1024,"name":"status","url":"classes/utils_errors.profilehandlererror.html#status","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"utils/errors.ProfileHandlerError"},{"id":296,"kind":1,"name":"version","url":"modules/version.html","classes":"tsd-kind-module"},{"id":297,"kind":1024,"name":"default","url":"modules/version.html#default","classes":"tsd-kind-property tsd-parent-kind-module","parent":"version"},{"id":298,"kind":16777216,"name":"UserProvider","url":"modules/client.html#userprovider","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"client"},{"id":299,"kind":16777216,"name":"UserProviderProps","url":"modules/client.html#userproviderprops","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"client"},{"id":300,"kind":16777216,"name":"UserProfile","url":"modules/client.html#userprofile","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"client"},{"id":301,"kind":16777216,"name":"RequestError","url":"modules/client.html#requesterror","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"client"},{"id":302,"kind":16777216,"name":"useUser","url":"modules/client.html#useuser","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"client"},{"id":303,"kind":16777216,"name":"WithPageAuthRequired","url":"modules/client.html#withpageauthrequired","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"client"},{"id":304,"kind":16777216,"name":"WithPageAuthRequiredOptions","url":"modules/client.html#withpageauthrequiredoptions","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"client"},{"id":305,"kind":16777216,"name":"WithMiddlewareAuthRequired","url":"modules/edge.html#withmiddlewareauthrequired","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"edge"},{"id":306,"kind":16777216,"name":"HandleCallback","url":"modules/handlers.html#handlecallback","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"handlers"},{"id":307,"kind":16777216,"name":"CallbackOptions","url":"modules/handlers.html#callbackoptions","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"handlers"},{"id":308,"kind":16777216,"name":"AfterCallback","url":"modules/handlers.html#aftercallback","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"handlers"},{"id":309,"kind":16777216,"name":"HandleLogin","url":"modules/handlers.html#handlelogin","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"handlers"},{"id":310,"kind":16777216,"name":"LoginOptions","url":"modules/handlers.html#loginoptions","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"handlers"},{"id":311,"kind":16777216,"name":"GetLoginState","url":"modules/handlers.html#getloginstate","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"handlers"},{"id":312,"kind":16777216,"name":"HandleLogout","url":"modules/handlers.html#handlelogout","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"handlers"},{"id":313,"kind":16777216,"name":"LogoutOptions","url":"modules/handlers.html#logoutoptions","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"handlers"},{"id":314,"kind":16777216,"name":"HandleProfile","url":"modules/handlers.html#handleprofile","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"handlers"},{"id":315,"kind":16777216,"name":"ProfileOptions","url":"modules/handlers.html#profileoptions","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"handlers"},{"id":316,"kind":16777216,"name":"AfterRefetch","url":"modules/handlers.html#afterrefetch","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"handlers"},{"id":317,"kind":16777216,"name":"Handlers","url":"modules/handlers.html#handlers-1","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"handlers"},{"id":318,"kind":16777216,"name":"HandleAuth","url":"modules/handlers.html#handleauth","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"handlers"},{"id":319,"kind":16777216,"name":"OnError","url":"modules/handlers.html#onerror","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"handlers"},{"id":320,"kind":16777216,"name":"WithApiAuthRequired","url":"modules/helpers.html#withapiauthrequired","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"helpers"},{"id":321,"kind":16777216,"name":"GetServerSidePropsResultWithSession","url":"modules/helpers.html#getserversidepropsresultwithsession","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"helpers"},{"id":322,"kind":16777216,"name":"WithPageAuthRequired","url":"modules/helpers.html#withpageauthrequired","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"helpers"},{"id":323,"kind":16777216,"name":"WithPageAuthRequiredOptions","url":"modules/helpers.html#withpageauthrequiredoptions","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"helpers"},{"id":324,"kind":16777216,"name":"PageRoute","url":"modules/helpers.html#pageroute","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"helpers"},{"id":325,"kind":16777216,"name":"AuthError","url":"modules/index.html#autherror","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"index"},{"id":326,"kind":16777216,"name":"AccessTokenErrorCode","url":"modules/index.html#accesstokenerrorcode","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"index"},{"id":327,"kind":16777216,"name":"AccessTokenError","url":"modules/index.html#accesstokenerror","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"index"},{"id":328,"kind":16777216,"name":"HandlerError","url":"modules/index.html#handlererror","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"index"},{"id":329,"kind":16777216,"name":"CallbackHandlerError","url":"modules/index.html#callbackhandlererror","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"index"},{"id":330,"kind":16777216,"name":"LoginHandlerError","url":"modules/index.html#loginhandlererror","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"index"},{"id":331,"kind":16777216,"name":"LogoutHandlerError","url":"modules/index.html#logouthandlererror","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"index"},{"id":332,"kind":16777216,"name":"ProfileHandlerError","url":"modules/index.html#profilehandlererror","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"index"},{"id":333,"kind":128,"name":"MissingStateCookieError","url":"classes/index.missingstatecookieerror.html","classes":"tsd-kind-class tsd-parent-kind-module","parent":"index"},{"id":334,"kind":1024,"name":"message","url":"classes/index.missingstatecookieerror.html#message","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-static","parent":"index.MissingStateCookieError"},{"id":335,"kind":512,"name":"constructor","url":"classes/index.missingstatecookieerror.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite","parent":"index.MissingStateCookieError"},{"id":336,"kind":128,"name":"MissingStateParamError","url":"classes/index.missingstateparamerror.html","classes":"tsd-kind-class tsd-parent-kind-module","parent":"index"},{"id":337,"kind":1024,"name":"message","url":"classes/index.missingstateparamerror.html#message","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-static","parent":"index.MissingStateParamError"},{"id":338,"kind":512,"name":"constructor","url":"classes/index.missingstateparamerror.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite","parent":"index.MissingStateParamError"},{"id":339,"kind":128,"name":"IdentityProviderError","url":"classes/index.identityprovidererror.html","classes":"tsd-kind-class tsd-parent-kind-module","parent":"index"},{"id":340,"kind":512,"name":"constructor","url":"classes/index.identityprovidererror.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite","parent":"index.IdentityProviderError"},{"id":341,"kind":1024,"name":"errorDescription","url":"classes/index.identityprovidererror.html#errordescription","classes":"tsd-kind-property tsd-parent-kind-class","parent":"index.IdentityProviderError"},{"id":342,"kind":1024,"name":"error","url":"classes/index.identityprovidererror.html#error","classes":"tsd-kind-property tsd-parent-kind-class","parent":"index.IdentityProviderError"},{"id":343,"kind":128,"name":"ApplicationError","url":"classes/index.applicationerror.html","classes":"tsd-kind-class tsd-parent-kind-module","parent":"index"},{"id":344,"kind":512,"name":"constructor","url":"classes/index.applicationerror.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite","parent":"index.ApplicationError"},{"id":345,"kind":16777216,"name":"ConfigParameters","url":"modules/index.html#configparameters","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"index"},{"id":346,"kind":16777216,"name":"HandleAuth","url":"modules/index.html#handleauth","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"index"},{"id":347,"kind":16777216,"name":"HandleLogin","url":"modules/index.html#handlelogin","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"index"},{"id":348,"kind":16777216,"name":"HandleProfile","url":"modules/index.html#handleprofile","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"index"},{"id":349,"kind":16777216,"name":"HandleLogout","url":"modules/index.html#handlelogout","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"index"},{"id":350,"kind":16777216,"name":"HandleCallback","url":"modules/index.html#handlecallback","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"index"},{"id":351,"kind":16777216,"name":"ProfileOptions","url":"modules/index.html#profileoptions","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"index"},{"id":352,"kind":16777216,"name":"Handlers","url":"modules/index.html#handlers","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"index"},{"id":353,"kind":16777216,"name":"GetServerSidePropsResultWithSession","url":"modules/index.html#getserversidepropsresultwithsession","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"index"},{"id":354,"kind":16777216,"name":"WithPageAuthRequiredOptions","url":"modules/index.html#withpageauthrequiredoptions","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"index"},{"id":355,"kind":16777216,"name":"PageRoute","url":"modules/index.html#pageroute","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"index"},{"id":356,"kind":16777216,"name":"WithApiAuthRequired","url":"modules/index.html#withapiauthrequired","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"index"},{"id":357,"kind":16777216,"name":"WithPageAuthRequired","url":"modules/index.html#withpageauthrequired","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"index"},{"id":358,"kind":128,"name":"SessionCache","url":"classes/index.sessioncache.html","classes":"tsd-kind-class tsd-parent-kind-module tsd-has-type-parameter","parent":"index"},{"id":359,"kind":512,"name":"constructor","url":"classes/index.sessioncache.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-has-type-parameter","parent":"index.SessionCache"},{"id":360,"kind":2048,"name":"save","url":"classes/index.sessioncache.html#save","classes":"tsd-kind-method tsd-parent-kind-class","parent":"index.SessionCache"},{"id":361,"kind":2048,"name":"create","url":"classes/index.sessioncache.html#create","classes":"tsd-kind-method tsd-parent-kind-class","parent":"index.SessionCache"},{"id":362,"kind":2048,"name":"delete","url":"classes/index.sessioncache.html#delete","classes":"tsd-kind-method tsd-parent-kind-class","parent":"index.SessionCache"},{"id":363,"kind":2048,"name":"isAuthenticated","url":"classes/index.sessioncache.html#isauthenticated","classes":"tsd-kind-method tsd-parent-kind-class","parent":"index.SessionCache"},{"id":364,"kind":2048,"name":"getIdToken","url":"classes/index.sessioncache.html#getidtoken","classes":"tsd-kind-method tsd-parent-kind-class","parent":"index.SessionCache"},{"id":365,"kind":2048,"name":"set","url":"classes/index.sessioncache.html#set","classes":"tsd-kind-method tsd-parent-kind-class","parent":"index.SessionCache"},{"id":366,"kind":2048,"name":"get","url":"classes/index.sessioncache.html#get","classes":"tsd-kind-method tsd-parent-kind-class","parent":"index.SessionCache"},{"id":367,"kind":2048,"name":"fromTokenSet","url":"classes/index.sessioncache.html#fromtokenset","classes":"tsd-kind-method tsd-parent-kind-class","parent":"index.SessionCache"},{"id":368,"kind":16777216,"name":"GetSession","url":"modules/index.html#getsession","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"index"},{"id":369,"kind":16777216,"name":"UpdateSession","url":"modules/index.html#updatesession","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"index"},{"id":370,"kind":16777216,"name":"GetAccessToken","url":"modules/index.html#getaccesstoken","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"index"},{"id":371,"kind":16777216,"name":"Session","url":"modules/index.html#session","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"index"},{"id":372,"kind":16777216,"name":"Claims","url":"modules/index.html#claims","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"index"},{"id":373,"kind":16777216,"name":"AccessTokenRequest","url":"modules/index.html#accesstokenrequest","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"index"},{"id":374,"kind":16777216,"name":"GetAccessTokenResult","url":"modules/index.html#getaccesstokenresult","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"index"},{"id":375,"kind":16777216,"name":"CallbackOptions","url":"modules/index.html#callbackoptions","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"index"},{"id":376,"kind":16777216,"name":"AfterCallback","url":"modules/index.html#aftercallback","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"index"},{"id":377,"kind":16777216,"name":"AfterRefetch","url":"modules/index.html#afterrefetch","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"index"},{"id":378,"kind":16777216,"name":"LoginOptions","url":"modules/index.html#loginoptions","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"index"},{"id":379,"kind":16777216,"name":"LogoutOptions","url":"modules/index.html#logoutoptions","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"index"},{"id":380,"kind":16777216,"name":"GetLoginState","url":"modules/index.html#getloginstate","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"index"},{"id":381,"kind":16777216,"name":"OnError","url":"modules/index.html#onerror","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"index"},{"id":382,"kind":16777216,"name":"Session","url":"modules/session.html#session-1","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"session"},{"id":383,"kind":16777216,"name":"Claims","url":"modules/session.html#claims","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"session"},{"id":384,"kind":16777216,"name":"GetSession","url":"modules/session.html#getsession","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"session"},{"id":385,"kind":16777216,"name":"GetAccessToken","url":"modules/session.html#getaccesstoken","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"session"},{"id":386,"kind":16777216,"name":"AccessTokenRequest","url":"modules/session.html#accesstokenrequest","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"session"},{"id":387,"kind":16777216,"name":"GetAccessTokenResult","url":"modules/session.html#getaccesstokenresult","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"session"},{"id":388,"kind":16777216,"name":"SessionCache","url":"modules/session.html#sessioncache","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"session"},{"id":389,"kind":16777216,"name":"UpdateSession","url":"modules/session.html#updatesession","classes":"tsd-kind-reference tsd-parent-kind-module","parent":"session"}],"index":{"version":"2.3.9","fields":["name","parent"],"fieldVectors":[["name/0",[0,38.952]],["parent/0",[]],["name/1",[1,19.576,2,25.041]],["parent/1",[]],["name/2",[3,51.403]],["parent/2",[1,2.158,2,2.76]],["name/3",[4,56.6]],["parent/3",[1,2.158,5,3.069]],["name/4",[6,56.6]],["parent/4",[1,2.158,5,3.069]],["name/5",[7,37.82]],["parent/5",[1,2.158,5,3.069]],["name/6",[8,56.6]],["parent/6",[1,2.158,5,3.069]],["name/7",[9,56.6]],["parent/7",[1,2.158,5,3.069]],["name/8",[10,56.6]],["parent/8",[1,2.158,5,3.069]],["name/9",[11,56.6]],["parent/9",[1,2.158,5,3.069]],["name/10",[12,56.6]],["parent/10",[1,2.158,5,3.069]],["name/11",[13,56.6]],["parent/11",[1,2.158,2,2.76]],["name/12",[14,22.578]],["parent/12",[1,2.158,15,4.46]],["name/13",[2,35.028]],["parent/13",[1,2.158,16,3.418]],["name/14",[17,51.403]],["parent/14",[1,2.158,16,3.418]],["name/15",[18,56.6]],["parent/15",[1,2.158,16,3.418]],["name/16",[19,56.6]],["parent/16",[1,2.158,16,3.418]],["name/17",[14,22.578]],["parent/17",[1,2.158,16,3.418]],["name/18",[20,51.403]],["parent/18",[1,2.158,2,2.76]],["name/19",[21,33.518]],["parent/19",[1,2.158,22,4.05]],["name/20",[23,38.952]],["parent/20",[1,2.158,22,4.05]],["name/21",[24,51.403]],["parent/21",[1,2.158,2,2.76]],["name/22",[25,51.403]],["parent/22",[1,2.158,2,2.76]],["name/23",[26,51.403]],["parent/23",[1,2.158,2,2.76]],["name/24",[14,22.578]],["parent/24",[1,2.158,27,4.46]],["name/25",[28,47.979]],["parent/25",[1,2.158,2,2.76]],["name/26",[14,22.578]],["parent/26",[1,2.158,2,2.76]],["name/27",[29,16.334,30,13.436,31,12.296,32,15.591]],["parent/27",[]],["name/28",[33,43.381]],["parent/28",[29,1.852,30,1.523,31,1.394,32,1.768]],["name/29",[34,45.422]],["parent/29",[29,1.852,30,1.523,31,1.394,35,2.152]],["name/30",[36,56.6]],["parent/30",[29,1.852,30,1.523,31,1.394,35,2.152]],["name/31",[14,22.578]],["parent/31",[29,1.852,30,1.523,31,1.394,35,2.152]],["name/32",[37,45.422]],["parent/32",[29,1.852,30,1.523,31,1.394,35,2.152]],["name/33",[14,22.578]],["parent/33",[29,1.852,30,1.523,31,1.394,35,2.152]],["name/34",[38,56.6]],["parent/34",[29,1.852,30,1.523,31,1.394,32,1.768]],["name/35",[2,35.028]],["parent/35",[29,1.852,30,1.523,31,1.394,39,2.922]],["name/36",[40,40.225]],["parent/36",[29,1.852,30,1.523,31,1.394,32,1.768]],["name/37",[14,22.578]],["parent/37",[29,1.852,30,1.523,31,1.394,41,2.654]],["name/38",[42,40.225]],["parent/38",[]],["name/39",[43,56.6]],["parent/39",[42,4.301]],["name/40",[44,56.6]],["parent/40",[45,3.262]],["name/41",[46,32.204]],["parent/41",[45,3.262]],["name/42",[47,56.6]],["parent/42",[45,3.262]],["name/43",[48,43.381]],["parent/43",[45,3.262]],["name/44",[49,56.6]],["parent/44",[45,3.262]],["name/45",[50,56.6]],["parent/45",[45,3.262]],["name/46",[51,56.6]],["parent/46",[45,3.262]],["name/47",[52,56.6]],["parent/47",[45,3.262]],["name/48",[53,56.6]],["parent/48",[45,3.262]],["name/49",[54,56.6]],["parent/49",[45,3.262]],["name/50",[55,43.381]],["parent/50",[45,3.262]],["name/51",[14,22.578]],["parent/51",[45,3.262]],["name/52",[56,51.403]],["parent/52",[45,3.262]],["name/53",[57,56.6]],["parent/53",[45,3.262]],["name/54",[58,56.6]],["parent/54",[45,3.262]],["name/55",[59,56.6]],["parent/55",[45,3.262]],["name/56",[60,56.6]],["parent/56",[45,3.262]],["name/57",[61,51.403]],["parent/57",[45,3.262]],["name/58",[14,22.578]],["parent/58",[45,3.262]],["name/59",[62,56.6]],["parent/59",[63,5.497]],["name/60",[64,51.403]],["parent/60",[63,5.497]],["name/61",[65,56.6]],["parent/61",[42,4.301]],["name/62",[7,37.82]],["parent/62",[66,4.457]],["name/63",[67,56.6]],["parent/63",[66,4.457]],["name/64",[68,56.6]],["parent/64",[66,4.457]],["name/65",[69,56.6]],["parent/65",[66,4.457]],["name/66",[70,56.6]],["parent/66",[66,4.457]],["name/67",[71,56.6]],["parent/67",[66,4.457]],["name/68",[72,56.6]],["parent/68",[42,4.301]],["name/69",[73,56.6]],["parent/69",[74,4.457]],["name/70",[75,56.6]],["parent/70",[74,4.457]],["name/71",[76,56.6]],["parent/71",[74,4.457]],["name/72",[77,56.6]],["parent/72",[74,4.457]],["name/73",[78,56.6]],["parent/73",[74,4.457]],["name/74",[79,56.6]],["parent/74",[74,4.457]],["name/75",[80,56.6]],["parent/75",[42,4.301]],["name/76",[81,51.403]],["parent/76",[82,5.131]],["name/77",[83,51.403]],["parent/77",[82,5.131]],["name/78",[84,51.403]],["parent/78",[82,5.131]],["name/79",[85,56.6]],["parent/79",[42,4.301]],["name/80",[86,47.979]],["parent/80",[87,4.857]],["name/81",[61,51.403]],["parent/81",[87,4.857]],["name/82",[14,22.578]],["parent/82",[87,4.857]],["name/83",[64,51.403]],["parent/83",[88,5.131]],["name/84",[89,56.6]],["parent/84",[88,5.131]],["name/85",[90,56.6]],["parent/85",[88,5.131]],["name/86",[56,51.403]],["parent/86",[87,4.857]],["name/87",[91,51.403]],["parent/87",[42,4.301]],["name/88",[92,38.952]],["parent/88",[]],["name/89",[93,56.6]],["parent/89",[92,4.165]],["name/90",[14,22.578]],["parent/90",[94,6.052]],["name/91",[95,45.422]],["parent/91",[96,5.497]],["name/92",[97,38.952]],["parent/92",[96,5.497]],["name/93",[97,38.952]],["parent/93",[92,4.165]],["name/94",[14,22.578]],["parent/94",[98,6.052]],["name/95",[99,45.422]],["parent/95",[92,4.165]],["name/96",[14,22.578]],["parent/96",[100,6.052]],["name/97",[99,45.422]],["parent/97",[92,4.165]],["name/98",[97,38.952]],["parent/98",[92,4.165]],["name/99",[95,45.422]],["parent/99",[92,4.165]],["name/100",[101,45.422]],["parent/100",[]],["name/101",[102,31.04]],["parent/101",[101,4.857]],["name/102",[103,43.381]],["parent/102",[101,4.857]],["name/103",[14,22.578]],["parent/103",[104,6.052]],["name/104",[37,45.422]],["parent/104",[101,4.857]],["name/105",[14,22.578]],["parent/105",[105,6.052]],["name/106",[106,41.681]],["parent/106",[]],["name/107",[107,45.422]],["parent/107",[106,4.457]],["name/108",[14,22.578]],["parent/108",[108,6.052]],["name/109",[109,47.979]],["parent/109",[106,4.457]],["name/110",[107,45.422]],["parent/110",[110,4.857]],["name/111",[111,56.6]],["parent/111",[110,4.857]],["name/112",[86,47.979]],["parent/112",[110,4.857]],["name/113",[48,43.381]],["parent/113",[110,4.857]],["name/114",[112,56.6]],["parent/114",[106,4.457]],["name/115",[14,22.578]],["parent/115",[113,6.052]],["name/116",[114,43.381]],["parent/116",[106,4.457]],["name/117",[14,22.578]],["parent/117",[115,6.052]],["name/118",[116,56.6]],["parent/118",[106,4.457]],["name/119",[14,22.578]],["parent/119",[117,6.052]],["name/120",[102,31.04]],["parent/120",[]],["name/121",[118,40.225]],["parent/121",[]],["name/122",[55,43.381]],["parent/122",[118,4.301]],["name/123",[14,22.578]],["parent/123",[119,6.052]],["name/124",[48,43.381]],["parent/124",[118,4.301]],["name/125",[120,56.6]],["parent/125",[121,4.165]],["name/126",[122,56.6]],["parent/126",[121,4.165]],["name/127",[123,56.6]],["parent/127",[121,4.165]],["name/128",[86,47.979]],["parent/128",[121,4.165]],["name/129",[124,56.6]],["parent/129",[121,4.165]],["name/130",[81,51.403]],["parent/130",[121,4.165]],["name/131",[83,51.403]],["parent/131",[121,4.165]],["name/132",[84,51.403]],["parent/132",[121,4.165]],["name/133",[125,47.979]],["parent/133",[118,4.301]],["name/134",[48,43.381]],["parent/134",[126,5.131]],["name/135",[34,45.422]],["parent/135",[126,5.131]],["name/136",[55,43.381]],["parent/136",[126,5.131]],["name/137",[127,56.6]],["parent/137",[118,4.301]],["name/138",[14,22.578]],["parent/138",[128,6.052]],["name/139",[129,43.381]],["parent/139",[118,4.301]],["name/140",[14,22.578]],["parent/140",[130,6.052]],["name/141",[131,56.6]],["parent/141",[118,4.301]],["name/142",[14,22.578]],["parent/142",[132,6.052]],["name/143",[133,43.381]],["parent/143",[]],["name/144",[134,47.979]],["parent/144",[133,4.639]],["name/145",[34,45.422]],["parent/145",[135,5.131]],["name/146",[136,56.6]],["parent/146",[135,5.131]],["name/147",[14,22.578]],["parent/147",[135,5.131]],["name/148",[137,56.6]],["parent/148",[133,4.639]],["name/149",[14,22.578]],["parent/149",[138,6.052]],["name/150",[139,43.381]],["parent/150",[133,4.639]],["name/151",[14,22.578]],["parent/151",[140,6.052]],["name/152",[141,56.6]],["parent/152",[133,4.639]],["name/153",[14,22.578]],["parent/153",[142,6.052]],["name/154",[143,41.681]],["parent/154",[]],["name/155",[144,45.422]],["parent/155",[143,4.457]],["name/156",[14,22.578]],["parent/156",[145,6.052]],["name/157",[146,47.979]],["parent/157",[143,4.457]],["name/158",[14,22.578]],["parent/158",[147,6.052]],["name/159",[148,56.6]],["parent/159",[149,5.497]],["name/160",[144,45.422]],["parent/160",[149,5.497]],["name/161",[150,56.6]],["parent/161",[143,4.457]],["name/162",[14,22.578]],["parent/162",[151,6.052]],["name/163",[152,43.381]],["parent/163",[143,4.457]],["name/164",[14,22.578]],["parent/164",[153,6.052]],["name/165",[154,56.6]],["parent/165",[143,4.457]],["name/166",[14,22.578]],["parent/166",[155,6.052]],["name/167",[156,41.681]],["parent/167",[]],["name/168",[157,47.979]],["parent/168",[]],["name/169",[158,56.6]],["parent/169",[157,5.131]],["name/170",[159,56.6]],["parent/170",[157,5.131]],["name/171",[31,12.296,32,15.591,160,14.662,161,21.844]],["parent/171",[]],["name/172",[162,43.381]],["parent/172",[31,1.394,32,1.768,160,1.662,161,2.477]],["name/173",[14,22.578]],["parent/173",[31,1.394,160,1.662,161,2.477,163,2.922]],["name/174",[31,12.296,32,15.591,160,14.662,164,21.844]],["parent/174",[]],["name/175",[95,45.422]],["parent/175",[31,1.394,32,1.768,160,1.662,164,2.477]],["name/176",[14,22.578]],["parent/176",[31,1.394,160,1.662,164,2.477,165,2.922]],["name/177",[30,13.436,31,12.296,32,15.591,160,14.662]],["parent/177",[]],["name/178",[166,47.979]],["parent/178",[30,1.523,31,1.394,32,1.768,160,1.662]],["name/179",[167,47.979]],["parent/179",[30,1.523,31,1.394,32,1.768,160,1.662]],["name/180",[14,22.578]],["parent/180",[30,1.523,31,1.394,160,1.662,168,2.922]],["name/181",[33,43.381]],["parent/181",[30,1.523,31,1.394,32,1.768,160,1.662]],["name/182",[14,22.578]],["parent/182",[30,1.523,31,1.394,35,2.152,160,1.662]],["name/183",[169,56.6]],["parent/183",[30,1.523,31,1.394,160,1.662,170,2.654]],["name/184",[34,45.422]],["parent/184",[30,1.523,31,1.394,160,1.662,170,2.654]],["name/185",[40,40.225]],["parent/185",[30,1.523,31,1.394,32,1.768,160,1.662]],["name/186",[14,22.578]],["parent/186",[30,1.523,31,1.394,41,2.654,160,1.662]],["name/187",[171,19.863]],["parent/187",[]],["name/188",[172,56.6]],["parent/188",[171,2.124]],["name/189",[97,38.952]],["parent/189",[173,3.935]],["name/190",[174,43.381]],["parent/190",[173,3.935]],["name/191",[175,43.381]],["parent/191",[173,3.935]],["name/192",[129,43.381]],["parent/192",[173,3.935]],["name/193",[114,43.381]],["parent/193",[173,3.935]],["name/194",[139,43.381]],["parent/194",[173,3.935]],["name/195",[152,43.381]],["parent/195",[173,3.935]],["name/196",[162,43.381]],["parent/196",[173,3.935]],["name/197",[40,40.225]],["parent/197",[173,3.935]],["name/198",[103,43.381]],["parent/198",[173,3.935]],["name/199",[99,45.422]],["parent/199",[171,2.124]],["name/200",[14,22.578]],["parent/200",[176,6.052]],["name/201",[99,45.422]],["parent/201",[171,2.124]],["name/202",[177,56.6]],["parent/202",[171,2.124]],["name/203",[97,38.952]],["parent/203",[171,2.124]],["name/204",[174,43.381]],["parent/204",[171,2.124]],["name/205",[175,43.381]],["parent/205",[171,2.124]],["name/206",[162,43.381]],["parent/206",[171,2.124]],["name/207",[40,40.225]],["parent/207",[171,2.124]],["name/208",[129,43.381]],["parent/208",[171,2.124]],["name/209",[139,43.381]],["parent/209",[171,2.124]],["name/210",[114,43.381]],["parent/210",[171,2.124]],["name/211",[152,43.381]],["parent/211",[171,2.124]],["name/212",[103,43.381]],["parent/212",[171,2.124]],["name/213",[178,18.268,179,19.486,180,24.132]],["parent/213",[]],["name/214",[181,51.403]],["parent/214",[178,2.048,179,2.185,180,2.706]],["name/215",[14,22.578]],["parent/215",[178,2.048,179,2.185,182,3.531]],["name/216",[183,47.979]],["parent/216",[178,2.048,179,2.185,180,2.706]],["name/217",[184,56.6]],["parent/217",[178,2.048,179,2.185,185,2.833]],["name/218",[186,56.6]],["parent/218",[178,2.048,179,2.185,185,2.833]],["name/219",[181,51.403]],["parent/219",[178,2.048,179,2.185,185,2.833]],["name/220",[48,43.381]],["parent/220",[178,2.048,179,2.185,185,2.833]],["name/221",[187,47.979]],["parent/221",[178,2.048,179,2.185,180,2.706]],["name/222",[188,51.403]],["parent/222",[178,2.048,179,2.185,189,3.531]],["name/223",[175,43.381]],["parent/223",[178,2.048,179,2.185,180,2.706]],["name/224",[14,22.578]],["parent/224",[178,2.048,179,2.185,190,3.531]],["name/225",[46,23.022,178,23.477]],["parent/225",[]],["name/226",[97,38.952]],["parent/226",[46,2.537,178,2.588]],["name/227",[14,22.578]],["parent/227",[178,2.588,191,4.46]],["name/228",[46,32.204]],["parent/228",[]],["name/229",[192,47.979]],["parent/229",[]],["name/230",[193,47.979]],["parent/230",[192,5.131]],["name/231",[28,47.979]],["parent/231",[192,5.131]],["name/232",[21,33.518]],["parent/232",[194,4.301]],["name/233",[2,35.028]],["parent/233",[194,4.301]],["name/234",[195,56.6]],["parent/234",[194,4.301]],["name/235",[188,51.403]],["parent/235",[194,4.301]],["name/236",[196,56.6]],["parent/236",[194,4.301]],["name/237",[197,56.6]],["parent/237",[194,4.301]],["name/238",[198,56.6]],["parent/238",[194,4.301]],["name/239",[46,23.022,199,34.3]],["parent/239",[]],["name/240",[174,43.381]],["parent/240",[46,2.537,199,3.78]],["name/241",[14,22.578]],["parent/241",[199,3.78,200,4.46]],["name/242",[201,37.82]],["parent/242",[]],["name/243",[202,51.403]],["parent/243",[201,4.044]],["name/244",[21,33.518]],["parent/244",[203,4.639]],["name/245",[204,35.877]],["parent/245",[203,4.639]],["name/246",[7,37.82]],["parent/246",[203,4.639]],["name/247",[205,40.225]],["parent/247",[203,4.639]],["name/248",[23,38.952]],["parent/248",[203,4.639]],["name/249",[206,51.403]],["parent/249",[201,4.044]],["name/250",[207,56.6]],["parent/250",[208,4.457]],["name/251",[209,56.6]],["parent/251",[208,4.457]],["name/252",[210,56.6]],["parent/252",[208,4.457]],["name/253",[211,56.6]],["parent/253",[208,4.457]],["name/254",[212,56.6]],["parent/254",[208,4.457]],["name/255",[213,56.6]],["parent/255",[208,4.457]],["name/256",[214,51.403]],["parent/256",[201,4.044]],["name/257",[21,33.518]],["parent/257",[215,4.639]],["name/258",[204,35.877]],["parent/258",[215,4.639]],["name/259",[7,37.82]],["parent/259",[215,4.639]],["name/260",[205,40.225]],["parent/260",[215,4.639]],["name/261",[23,38.952]],["parent/261",[215,4.639]],["name/262",[216,51.403]],["parent/262",[201,4.044]],["name/263",[21,33.518]],["parent/263",[217,4.639]],["name/264",[204,35.877]],["parent/264",[217,4.639]],["name/265",[7,37.82]],["parent/265",[217,4.639]],["name/266",[205,40.225]],["parent/266",[217,4.639]],["name/267",[23,38.952]],["parent/267",[217,4.639]],["name/268",[218,51.403]],["parent/268",[201,4.044]],["name/269",[204,35.877]],["parent/269",[219,4.457]],["name/270",[21,33.518]],["parent/270",[219,4.457]],["name/271",[204,35.877]],["parent/271",[219,4.457]],["name/272",[7,37.82]],["parent/272",[219,4.457]],["name/273",[205,40.225]],["parent/273",[219,4.457]],["name/274",[23,38.952]],["parent/274",[219,4.457]],["name/275",[220,51.403]],["parent/275",[201,4.044]],["name/276",[204,35.877]],["parent/276",[221,4.457]],["name/277",[21,33.518]],["parent/277",[221,4.457]],["name/278",[204,35.877]],["parent/278",[221,4.457]],["name/279",[7,37.82]],["parent/279",[221,4.457]],["name/280",[205,40.225]],["parent/280",[221,4.457]],["name/281",[23,38.952]],["parent/281",[221,4.457]],["name/282",[222,51.403]],["parent/282",[201,4.044]],["name/283",[204,35.877]],["parent/283",[223,4.457]],["name/284",[21,33.518]],["parent/284",[223,4.457]],["name/285",[204,35.877]],["parent/285",[223,4.457]],["name/286",[7,37.82]],["parent/286",[223,4.457]],["name/287",[205,40.225]],["parent/287",[223,4.457]],["name/288",[23,38.952]],["parent/288",[223,4.457]],["name/289",[224,51.403]],["parent/289",[201,4.044]],["name/290",[204,35.877]],["parent/290",[225,4.457]],["name/291",[21,33.518]],["parent/291",[225,4.457]],["name/292",[204,35.877]],["parent/292",[225,4.457]],["name/293",[7,37.82]],["parent/293",[225,4.457]],["name/294",[205,40.225]],["parent/294",[225,4.457]],["name/295",[23,38.952]],["parent/295",[225,4.457]],["name/296",[226,51.403]],["parent/296",[]],["name/297",[28,47.979]],["parent/297",[226,5.497]],["name/298",[26,51.403]],["parent/298",[0,4.165]],["name/299",[24,51.403]],["parent/299",[0,4.165]],["name/300",[3,51.403]],["parent/300",[0,4.165]],["name/301",[20,51.403]],["parent/301",[0,4.165]],["name/302",[25,51.403]],["parent/302",[0,4.165]],["name/303",[40,40.225]],["parent/303",[0,4.165]],["name/304",[33,43.381]],["parent/304",[0,4.165]],["name/305",[95,45.422]],["parent/305",[92,4.165]],["name/306",[114,43.381]],["parent/306",[102,3.319]],["name/307",[109,47.979]],["parent/307",[102,3.319]],["name/308",[107,45.422]],["parent/308",[102,3.319]],["name/309",[129,43.381]],["parent/309",[102,3.319]],["name/310",[125,47.979]],["parent/310",[102,3.319]],["name/311",[55,43.381]],["parent/311",[102,3.319]],["name/312",[139,43.381]],["parent/312",[102,3.319]],["name/313",[134,47.979]],["parent/313",[102,3.319]],["name/314",[152,43.381]],["parent/314",[102,3.319]],["name/315",[146,47.979]],["parent/315",[102,3.319]],["name/316",[144,45.422]],["parent/316",[102,3.319]],["name/317",[102,31.04]],["parent/317",[102,3.319]],["name/318",[103,43.381]],["parent/318",[102,3.319]],["name/319",[37,45.422]],["parent/319",[102,3.319]],["name/320",[162,43.381]],["parent/320",[156,4.457]],["name/321",[166,47.979]],["parent/321",[156,4.457]],["name/322",[40,40.225]],["parent/322",[156,4.457]],["name/323",[33,43.381]],["parent/323",[156,4.457]],["name/324",[167,47.979]],["parent/324",[156,4.457]],["name/325",[202,51.403]],["parent/325",[171,2.124]],["name/326",[206,51.403]],["parent/326",[171,2.124]],["name/327",[214,51.403]],["parent/327",[171,2.124]],["name/328",[216,51.403]],["parent/328",[171,2.124]],["name/329",[218,51.403]],["parent/329",[171,2.124]],["name/330",[220,51.403]],["parent/330",[171,2.124]],["name/331",[222,51.403]],["parent/331",[171,2.124]],["name/332",[224,51.403]],["parent/332",[171,2.124]],["name/333",[227,56.6]],["parent/333",[171,2.124]],["name/334",[228,51.403]],["parent/334",[229,5.497]],["name/335",[21,33.518]],["parent/335",[229,5.497]],["name/336",[230,56.6]],["parent/336",[171,2.124]],["name/337",[228,51.403]],["parent/337",[231,5.497]],["name/338",[21,33.518]],["parent/338",[231,5.497]],["name/339",[232,56.6]],["parent/339",[171,2.124]],["name/340",[21,33.518]],["parent/340",[233,5.131]],["name/341",[234,56.6]],["parent/341",[233,5.131]],["name/342",[17,51.403]],["parent/342",[233,5.131]],["name/343",[235,56.6]],["parent/343",[171,2.124]],["name/344",[21,33.518]],["parent/344",[236,6.052]],["name/345",[91,51.403]],["parent/345",[171,2.124]],["name/346",[103,43.381]],["parent/346",[171,2.124]],["name/347",[129,43.381]],["parent/347",[171,2.124]],["name/348",[152,43.381]],["parent/348",[171,2.124]],["name/349",[139,43.381]],["parent/349",[171,2.124]],["name/350",[114,43.381]],["parent/350",[171,2.124]],["name/351",[146,47.979]],["parent/351",[171,2.124]],["name/352",[102,31.04]],["parent/352",[171,2.124]],["name/353",[166,47.979]],["parent/353",[171,2.124]],["name/354",[33,43.381]],["parent/354",[171,2.124]],["name/355",[167,47.979]],["parent/355",[171,2.124]],["name/356",[162,43.381]],["parent/356",[171,2.124]],["name/357",[40,40.225]],["parent/357",[171,2.124]],["name/358",[237,51.403]],["parent/358",[171,2.124]],["name/359",[21,33.518]],["parent/359",[238,4.044]],["name/360",[239,56.6]],["parent/360",[238,4.044]],["name/361",[240,56.6]],["parent/361",[238,4.044]],["name/362",[241,56.6]],["parent/362",[238,4.044]],["name/363",[242,56.6]],["parent/363",[238,4.044]],["name/364",[243,56.6]],["parent/364",[238,4.044]],["name/365",[244,56.6]],["parent/365",[238,4.044]],["name/366",[245,56.6]],["parent/366",[238,4.044]],["name/367",[246,56.6]],["parent/367",[238,4.044]],["name/368",[97,38.952]],["parent/368",[171,2.124]],["name/369",[174,43.381]],["parent/369",[171,2.124]],["name/370",[175,43.381]],["parent/370",[171,2.124]],["name/371",[46,32.204]],["parent/371",[171,2.124]],["name/372",[193,47.979]],["parent/372",[171,2.124]],["name/373",[183,47.979]],["parent/373",[171,2.124]],["name/374",[187,47.979]],["parent/374",[171,2.124]],["name/375",[109,47.979]],["parent/375",[171,2.124]],["name/376",[107,45.422]],["parent/376",[171,2.124]],["name/377",[144,45.422]],["parent/377",[171,2.124]],["name/378",[125,47.979]],["parent/378",[171,2.124]],["name/379",[134,47.979]],["parent/379",[171,2.124]],["name/380",[55,43.381]],["parent/380",[171,2.124]],["name/381",[37,45.422]],["parent/381",[171,2.124]],["name/382",[46,32.204]],["parent/382",[46,3.444]],["name/383",[193,47.979]],["parent/383",[46,3.444]],["name/384",[97,38.952]],["parent/384",[46,3.444]],["name/385",[175,43.381]],["parent/385",[46,3.444]],["name/386",[183,47.979]],["parent/386",[46,3.444]],["name/387",[187,47.979]],["parent/387",[46,3.444]],["name/388",[237,51.403]],["parent/388",[46,3.444]],["name/389",[174,43.381]],["parent/389",[46,3.444]]],"invertedIndex":[["__type",{"_index":14,"name":{"12":{},"17":{},"24":{},"26":{},"31":{},"33":{},"37":{},"51":{},"58":{},"82":{},"90":{},"94":{},"96":{},"103":{},"105":{},"108":{},"115":{},"117":{},"119":{},"123":{},"138":{},"140":{},"142":{},"147":{},"149":{},"151":{},"153":{},"156":{},"158":{},"162":{},"164":{},"166":{},"173":{},"176":{},"180":{},"182":{},"186":{},"200":{},"215":{},"224":{},"227":{},"241":{}},"parent":{}}],["_initauth",{"_index":177,"name":{"202":{}},"parent":{}}],["absoluteduration",{"_index":69,"name":{"65":{}},"parent":{}}],["access",{"_index":179,"name":{"213":{}},"parent":{"214":{},"215":{},"216":{},"217":{},"218":{},"219":{},"220":{},"221":{},"222":{},"223":{},"224":{}}}],["accesstoken",{"_index":188,"name":{"222":{},"235":{}},"parent":{}}],["accesstokenerror",{"_index":214,"name":{"256":{},"327":{}},"parent":{}}],["accesstokenerrorcode",{"_index":206,"name":{"249":{},"326":{}},"parent":{}}],["accesstokenexpiresat",{"_index":197,"name":{"237":{}},"parent":{}}],["accesstokenrequest",{"_index":183,"name":{"216":{},"373":{},"386":{}},"parent":{}}],["accesstokenscope",{"_index":196,"name":{"236":{}},"parent":{}}],["aftercallback",{"_index":107,"name":{"107":{},"110":{},"308":{},"376":{}},"parent":{}}],["afterrefetch",{"_index":144,"name":{"155":{},"160":{},"316":{},"377":{}},"parent":{}}],["afterrefresh",{"_index":181,"name":{"214":{},"219":{}},"parent":{}}],["api",{"_index":161,"name":{"171":{}},"parent":{"172":{},"173":{}}}],["applicationerror",{"_index":235,"name":{"343":{}},"parent":{}}],["auth",{"_index":31,"name":{"27":{},"171":{},"174":{},"177":{}},"parent":{"28":{},"29":{},"30":{},"31":{},"32":{},"33":{},"34":{},"35":{},"36":{},"37":{},"172":{},"173":{},"175":{},"176":{},"178":{},"179":{},"180":{},"181":{},"182":{},"183":{},"184":{},"185":{},"186":{}}}],["auth0edge",{"_index":93,"name":{"89":{}},"parent":{}}],["auth0logout",{"_index":47,"name":{"42":{}},"parent":{}}],["auth0server",{"_index":172,"name":{"188":{}},"parent":{}}],["autherror",{"_index":202,"name":{"243":{},"325":{}},"parent":{}}],["authorizationparameters",{"_index":80,"name":{"75":{}},"parent":{}}],["authorizationparams",{"_index":48,"name":{"43":{},"113":{},"124":{},"134":{},"220":{}},"parent":{}}],["baseconfig",{"_index":43,"name":{"39":{}},"parent":{}}],["baseurl",{"_index":49,"name":{"44":{}},"parent":{}}],["callback",{"_index":64,"name":{"60":{},"83":{}},"parent":{}}],["callbackhandler",{"_index":116,"name":{"118":{}},"parent":{}}],["callbackhandlererror",{"_index":218,"name":{"268":{},"329":{}},"parent":{}}],["callbackoptions",{"_index":109,"name":{"109":{},"307":{},"375":{}},"parent":{}}],["callbackoptionsprovider",{"_index":112,"name":{"114":{}},"parent":{}}],["cause",{"_index":205,"name":{"247":{},"260":{},"266":{},"273":{},"280":{},"287":{},"294":{}},"parent":{}}],["checksession",{"_index":19,"name":{"16":{}},"parent":{}}],["claims",{"_index":193,"name":{"230":{},"372":{},"383":{}},"parent":{}}],["client",{"_index":0,"name":{"0":{}},"parent":{"298":{},"299":{},"300":{},"301":{},"302":{},"303":{},"304":{}}}],["client/use",{"_index":1,"name":{"1":{}},"parent":{"2":{},"3":{},"4":{},"5":{},"6":{},"7":{},"8":{},"9":{},"10":{},"11":{},"12":{},"13":{},"14":{},"15":{},"16":{},"17":{},"18":{},"19":{},"20":{},"21":{},"22":{},"23":{},"24":{},"25":{},"26":{}}}],["client/with",{"_index":29,"name":{"27":{}},"parent":{"28":{},"29":{},"30":{},"31":{},"32":{},"33":{},"34":{},"35":{},"36":{},"37":{}}}],["clientid",{"_index":50,"name":{"45":{}},"parent":{}}],["clientsecret",{"_index":51,"name":{"46":{}},"parent":{}}],["clocktolerance",{"_index":52,"name":{"47":{}},"parent":{}}],["code",{"_index":204,"name":{"245":{},"258":{},"264":{},"269":{},"271":{},"276":{},"278":{},"283":{},"285":{},"290":{},"292":{}},"parent":{}}],["config",{"_index":42,"name":{"38":{}},"parent":{"39":{},"61":{},"68":{},"75":{},"79":{},"87":{}}}],["config.authorizationparameters",{"_index":82,"name":{},"parent":{"76":{},"77":{},"78":{}}}],["config.baseconfig",{"_index":45,"name":{},"parent":{"40":{},"41":{},"42":{},"43":{},"44":{},"45":{},"46":{},"47":{},"48":{},"49":{},"50":{},"51":{},"52":{},"53":{},"54":{},"55":{},"56":{},"57":{},"58":{}}}],["config.baseconfig.__type",{"_index":63,"name":{},"parent":{"59":{},"60":{}}}],["config.cookieconfig",{"_index":74,"name":{},"parent":{"69":{},"70":{},"71":{},"72":{},"73":{},"74":{}}}],["config.nextconfig",{"_index":87,"name":{},"parent":{"80":{},"81":{},"82":{},"86":{}}}],["config.nextconfig.__type",{"_index":88,"name":{},"parent":{"83":{},"84":{},"85":{}}}],["config.sessionconfig",{"_index":66,"name":{},"parent":{"62":{},"63":{},"64":{},"65":{},"66":{},"67":{}}}],["configparameters",{"_index":91,"name":{"87":{},"345":{}},"parent":{}}],["connection",{"_index":120,"name":{"125":{}},"parent":{}}],["connection_scope",{"_index":122,"name":{"126":{}},"parent":{}}],["constructor",{"_index":21,"name":{"19":{},"232":{},"244":{},"257":{},"263":{},"270":{},"277":{},"284":{},"291":{},"335":{},"338":{},"340":{},"344":{},"359":{}},"parent":{}}],["cookie",{"_index":71,"name":{"67":{}},"parent":{}}],["cookieconfig",{"_index":72,"name":{"68":{}},"parent":{}}],["create",{"_index":240,"name":{"361":{}},"parent":{}}],["default",{"_index":28,"name":{"25":{},"231":{},"297":{}},"parent":{}}],["delete",{"_index":241,"name":{"362":{}},"parent":{}}],["domain",{"_index":73,"name":{"69":{}},"parent":{}}],["edge",{"_index":92,"name":{"88":{}},"parent":{"89":{},"93":{},"95":{},"97":{},"98":{},"99":{},"305":{}}}],["edge.auth0edge",{"_index":94,"name":{},"parent":{"90":{}}}],["edge.auth0edge.__type",{"_index":96,"name":{},"parent":{"91":{},"92":{}}}],["edge.getsession",{"_index":98,"name":{},"parent":{"94":{}}}],["edge.initauth0",{"_index":100,"name":{},"parent":{"96":{}}}],["email",{"_index":4,"name":{"3":{}},"parent":{}}],["email_verified",{"_index":6,"name":{"4":{}},"parent":{}}],["enabletelemetry",{"_index":54,"name":{"49":{}},"parent":{}}],["error",{"_index":17,"name":{"14":{},"342":{}},"parent":{}}],["errordescription",{"_index":234,"name":{"341":{}},"parent":{}}],["expired_access_token",{"_index":211,"name":{"253":{}},"parent":{}}],["failed_refresh_grant",{"_index":213,"name":{"255":{}},"parent":{}}],["fromtokenset",{"_index":246,"name":{"367":{}},"parent":{}}],["generatesessioncookie",{"_index":159,"name":{"170":{}},"parent":{}}],["generatesessioncookieconfig",{"_index":158,"name":{"169":{}},"parent":{}}],["get",{"_index":245,"name":{"366":{}},"parent":{}}],["getaccesstoken",{"_index":175,"name":{"191":{},"205":{},"223":{},"370":{},"385":{}},"parent":{}}],["getaccesstokenresult",{"_index":187,"name":{"221":{},"374":{},"387":{}},"parent":{}}],["getidtoken",{"_index":243,"name":{"364":{}},"parent":{}}],["getloginstate",{"_index":55,"name":{"50":{},"122":{},"136":{},"311":{},"380":{}},"parent":{}}],["getserversideprops",{"_index":169,"name":{"183":{}},"parent":{}}],["getserversidepropsresultwithsession",{"_index":166,"name":{"178":{},"321":{},"353":{}},"parent":{}}],["getsession",{"_index":97,"name":{"92":{},"93":{},"98":{},"189":{},"203":{},"226":{},"368":{},"384":{}},"parent":{}}],["handleauth",{"_index":103,"name":{"102":{},"198":{},"212":{},"318":{},"346":{}},"parent":{}}],["handlecallback",{"_index":114,"name":{"116":{},"193":{},"210":{},"306":{},"350":{}},"parent":{}}],["handlelogin",{"_index":129,"name":{"139":{},"192":{},"208":{},"309":{},"347":{}},"parent":{}}],["handlelogout",{"_index":139,"name":{"150":{},"194":{},"209":{},"312":{},"349":{}},"parent":{}}],["handleprofile",{"_index":152,"name":{"163":{},"195":{},"211":{},"314":{},"348":{}},"parent":{}}],["handlererror",{"_index":216,"name":{"262":{},"328":{}},"parent":{}}],["handlers",{"_index":102,"name":{"101":{},"120":{},"317":{},"352":{}},"parent":{"306":{},"307":{},"308":{},"309":{},"310":{},"311":{},"312":{},"313":{},"314":{},"315":{},"316":{},"317":{},"318":{},"319":{}}}],["handlers/auth",{"_index":101,"name":{"100":{}},"parent":{"101":{},"102":{},"104":{}}}],["handlers/auth.handleauth",{"_index":104,"name":{},"parent":{"103":{}}}],["handlers/auth.onerror",{"_index":105,"name":{},"parent":{"105":{}}}],["handlers/callback",{"_index":106,"name":{"106":{}},"parent":{"107":{},"109":{},"114":{},"116":{},"118":{}}}],["handlers/callback.aftercallback",{"_index":108,"name":{},"parent":{"108":{}}}],["handlers/callback.callbackhandler",{"_index":117,"name":{},"parent":{"119":{}}}],["handlers/callback.callbackoptions",{"_index":110,"name":{},"parent":{"110":{},"111":{},"112":{},"113":{}}}],["handlers/callback.callbackoptionsprovider",{"_index":113,"name":{},"parent":{"115":{}}}],["handlers/callback.handlecallback",{"_index":115,"name":{},"parent":{"117":{}}}],["handlers/login",{"_index":118,"name":{"121":{}},"parent":{"122":{},"124":{},"133":{},"137":{},"139":{},"141":{}}}],["handlers/login.authorizationparams",{"_index":121,"name":{},"parent":{"125":{},"126":{},"127":{},"128":{},"129":{},"130":{},"131":{},"132":{}}}],["handlers/login.getloginstate",{"_index":119,"name":{},"parent":{"123":{}}}],["handlers/login.handlelogin",{"_index":130,"name":{},"parent":{"140":{}}}],["handlers/login.loginhandler",{"_index":132,"name":{},"parent":{"142":{}}}],["handlers/login.loginoptions",{"_index":126,"name":{},"parent":{"134":{},"135":{},"136":{}}}],["handlers/login.loginoptionsprovider",{"_index":128,"name":{},"parent":{"138":{}}}],["handlers/logout",{"_index":133,"name":{"143":{}},"parent":{"144":{},"148":{},"150":{},"152":{}}}],["handlers/logout.handlelogout",{"_index":140,"name":{},"parent":{"151":{}}}],["handlers/logout.logouthandler",{"_index":142,"name":{},"parent":{"153":{}}}],["handlers/logout.logoutoptions",{"_index":135,"name":{},"parent":{"145":{},"146":{},"147":{}}}],["handlers/logout.logoutoptionsprovider",{"_index":138,"name":{},"parent":{"149":{}}}],["handlers/profile",{"_index":143,"name":{"154":{}},"parent":{"155":{},"157":{},"161":{},"163":{},"165":{}}}],["handlers/profile.afterrefetch",{"_index":145,"name":{},"parent":{"156":{}}}],["handlers/profile.handleprofile",{"_index":153,"name":{},"parent":{"164":{}}}],["handlers/profile.profilehandler",{"_index":155,"name":{},"parent":{"166":{}}}],["handlers/profile.profileoptions",{"_index":147,"name":{},"parent":{"158":{}}}],["handlers/profile.profileoptions.__type",{"_index":149,"name":{},"parent":{"159":{},"160":{}}}],["handlers/profile.profileoptionsprovider",{"_index":151,"name":{},"parent":{"162":{}}}],["helpers",{"_index":156,"name":{"167":{}},"parent":{"320":{},"321":{},"322":{},"323":{},"324":{}}}],["helpers/testing",{"_index":157,"name":{"168":{}},"parent":{"169":{},"170":{}}}],["helpers/with",{"_index":160,"name":{"171":{},"174":{},"177":{}},"parent":{"172":{},"173":{},"175":{},"176":{},"178":{},"179":{},"180":{},"181":{},"182":{},"183":{},"184":{},"185":{},"186":{}}}],["httponly",{"_index":77,"name":{"72":{}},"parent":{}}],["httptimeout",{"_index":53,"name":{"48":{}},"parent":{}}],["identityclaimfilter",{"_index":56,"name":{"52":{},"86":{}},"parent":{}}],["identityprovidererror",{"_index":232,"name":{"339":{}},"parent":{}}],["idplogout",{"_index":57,"name":{"53":{}},"parent":{}}],["idtoken",{"_index":195,"name":{"234":{}},"parent":{}}],["idtokensigningalg",{"_index":58,"name":{"54":{}},"parent":{}}],["index",{"_index":171,"name":{"187":{}},"parent":{"188":{},"199":{},"201":{},"202":{},"203":{},"204":{},"205":{},"206":{},"207":{},"208":{},"209":{},"210":{},"211":{},"212":{},"325":{},"326":{},"327":{},"328":{},"329":{},"330":{},"331":{},"332":{},"333":{},"336":{},"339":{},"343":{},"345":{},"346":{},"347":{},"348":{},"349":{},"350":{},"351":{},"352":{},"353":{},"354":{},"355":{},"356":{},"357":{},"358":{},"368":{},"369":{},"370":{},"371":{},"372":{},"373":{},"374":{},"375":{},"376":{},"377":{},"378":{},"379":{},"380":{},"381":{}}}],["index.applicationerror",{"_index":236,"name":{},"parent":{"344":{}}}],["index.auth0server",{"_index":173,"name":{},"parent":{"189":{},"190":{},"191":{},"192":{},"193":{},"194":{},"195":{},"196":{},"197":{},"198":{}}}],["index.identityprovidererror",{"_index":233,"name":{},"parent":{"340":{},"341":{},"342":{}}}],["index.initauth0",{"_index":176,"name":{},"parent":{"200":{}}}],["index.missingstatecookieerror",{"_index":229,"name":{},"parent":{"334":{},"335":{}}}],["index.missingstateparamerror",{"_index":231,"name":{},"parent":{"337":{},"338":{}}}],["index.sessioncache",{"_index":238,"name":{},"parent":{"359":{},"360":{},"361":{},"362":{},"363":{},"364":{},"365":{},"366":{},"367":{}}}],["initauth0",{"_index":99,"name":{"95":{},"97":{},"199":{},"201":{}},"parent":{}}],["insufficient_scope",{"_index":212,"name":{"254":{}},"parent":{}}],["invitation",{"_index":123,"name":{"127":{}},"parent":{}}],["isauthenticated",{"_index":242,"name":{"363":{}},"parent":{}}],["isloading",{"_index":18,"name":{"15":{}},"parent":{}}],["issuerbaseurl",{"_index":59,"name":{"55":{}},"parent":{}}],["legacysamesitecookie",{"_index":60,"name":{"56":{}},"parent":{}}],["login",{"_index":89,"name":{"84":{}},"parent":{}}],["loginhandler",{"_index":131,"name":{"141":{}},"parent":{}}],["loginhandlererror",{"_index":220,"name":{"275":{},"330":{}},"parent":{}}],["loginoptions",{"_index":125,"name":{"133":{},"310":{},"378":{}},"parent":{}}],["loginoptionsprovider",{"_index":127,"name":{"137":{}},"parent":{}}],["logouthandler",{"_index":141,"name":{"152":{}},"parent":{}}],["logouthandlererror",{"_index":222,"name":{"282":{},"331":{}},"parent":{}}],["logoutoptions",{"_index":134,"name":{"144":{},"313":{},"379":{}},"parent":{}}],["logoutoptionsprovider",{"_index":137,"name":{"148":{}},"parent":{}}],["logoutparams",{"_index":136,"name":{"146":{}},"parent":{}}],["message",{"_index":228,"name":{"334":{},"337":{}},"parent":{}}],["middleware",{"_index":164,"name":{"174":{}},"parent":{"175":{},"176":{}}}],["missing_access_token",{"_index":209,"name":{"251":{}},"parent":{}}],["missing_refresh_token",{"_index":210,"name":{"252":{}},"parent":{}}],["missing_session",{"_index":207,"name":{"250":{}},"parent":{}}],["missingstatecookieerror",{"_index":227,"name":{"333":{}},"parent":{}}],["missingstateparamerror",{"_index":230,"name":{"336":{}},"parent":{}}],["name",{"_index":7,"name":{"5":{},"62":{},"246":{},"259":{},"265":{},"272":{},"279":{},"286":{},"293":{}},"parent":{}}],["nextconfig",{"_index":85,"name":{"79":{}},"parent":{}}],["nickname",{"_index":8,"name":{"6":{}},"parent":{}}],["onerror",{"_index":37,"name":{"32":{},"104":{},"319":{},"381":{}},"parent":{}}],["onredirecting",{"_index":36,"name":{"30":{}},"parent":{}}],["org_id",{"_index":12,"name":{"10":{}},"parent":{}}],["organization",{"_index":86,"name":{"80":{},"112":{},"128":{}},"parent":{}}],["page",{"_index":30,"name":{"27":{},"177":{}},"parent":{"28":{},"29":{},"30":{},"31":{},"32":{},"33":{},"34":{},"35":{},"36":{},"37":{},"178":{},"179":{},"180":{},"181":{},"182":{},"183":{},"184":{},"185":{},"186":{}}}],["pageroute",{"_index":167,"name":{"179":{},"324":{},"355":{}},"parent":{}}],["path",{"_index":75,"name":{"70":{}},"parent":{}}],["picture",{"_index":9,"name":{"7":{}},"parent":{}}],["postlogoutredirect",{"_index":62,"name":{"59":{}},"parent":{}}],["profilehandler",{"_index":154,"name":{"165":{}},"parent":{}}],["profilehandlererror",{"_index":224,"name":{"289":{},"332":{}},"parent":{}}],["profileoptions",{"_index":146,"name":{"157":{},"315":{},"351":{}},"parent":{}}],["profileoptionsprovider",{"_index":150,"name":{"161":{}},"parent":{}}],["redirecturi",{"_index":111,"name":{"111":{}},"parent":{}}],["refetch",{"_index":148,"name":{"159":{}},"parent":{}}],["refresh",{"_index":186,"name":{"218":{}},"parent":{}}],["refreshtoken",{"_index":198,"name":{"238":{}},"parent":{}}],["requesterror",{"_index":20,"name":{"18":{},"301":{}},"parent":{}}],["required",{"_index":32,"name":{"27":{},"171":{},"174":{},"177":{}},"parent":{"28":{},"34":{},"36":{},"172":{},"175":{},"178":{},"179":{},"181":{},"185":{}}}],["required.pageroute",{"_index":168,"name":{},"parent":{"180":{}}}],["required.userprops",{"_index":39,"name":{},"parent":{"35":{}}}],["required.withapiauthrequired",{"_index":163,"name":{},"parent":{"173":{}}}],["required.withmiddlewareauthrequired",{"_index":165,"name":{},"parent":{"176":{}}}],["required.withpageauthrequired",{"_index":41,"name":{},"parent":{"37":{},"186":{}}}],["required.withpageauthrequiredoptions",{"_index":35,"name":{},"parent":{"29":{},"30":{},"31":{},"32":{},"33":{},"182":{}}}],["required.withpageauthrequiredoptions.__type",{"_index":170,"name":{},"parent":{"183":{},"184":{}}}],["response_mode",{"_index":83,"name":{"77":{},"131":{}},"parent":{}}],["response_type",{"_index":84,"name":{"78":{},"132":{}},"parent":{}}],["returnto",{"_index":34,"name":{"29":{},"135":{},"145":{},"184":{}},"parent":{}}],["rolling",{"_index":67,"name":{"63":{}},"parent":{}}],["rollingduration",{"_index":68,"name":{"64":{}},"parent":{}}],["routes",{"_index":61,"name":{"57":{},"81":{}},"parent":{}}],["samesite",{"_index":79,"name":{"74":{}},"parent":{}}],["save",{"_index":239,"name":{"360":{}},"parent":{}}],["scope",{"_index":81,"name":{"76":{},"130":{}},"parent":{}}],["scopes",{"_index":184,"name":{"217":{}},"parent":{}}],["screen_hint",{"_index":124,"name":{"129":{}},"parent":{}}],["secret",{"_index":44,"name":{"40":{}},"parent":{}}],["secure",{"_index":78,"name":{"73":{}},"parent":{}}],["session",{"_index":46,"name":{"41":{},"225":{},"228":{},"239":{},"371":{},"382":{}},"parent":{"226":{},"240":{},"382":{},"383":{},"384":{},"385":{},"386":{},"387":{},"388":{},"389":{}}}],["session.getsession",{"_index":191,"name":{},"parent":{"227":{}}}],["session.updatesession",{"_index":200,"name":{},"parent":{"241":{}}}],["session/get",{"_index":178,"name":{"213":{},"225":{}},"parent":{"214":{},"215":{},"216":{},"217":{},"218":{},"219":{},"220":{},"221":{},"222":{},"223":{},"224":{},"226":{},"227":{}}}],["session/session",{"_index":192,"name":{"229":{}},"parent":{"230":{},"231":{}}}],["session/session.default",{"_index":194,"name":{},"parent":{"232":{},"233":{},"234":{},"235":{},"236":{},"237":{},"238":{}}}],["session/update",{"_index":199,"name":{"239":{}},"parent":{"240":{},"241":{}}}],["sessioncache",{"_index":237,"name":{"358":{},"388":{}},"parent":{}}],["sessionconfig",{"_index":65,"name":{"61":{}},"parent":{}}],["set",{"_index":244,"name":{"365":{}},"parent":{}}],["status",{"_index":23,"name":{"20":{},"248":{},"261":{},"267":{},"274":{},"281":{},"288":{},"295":{}},"parent":{}}],["storeidtoken",{"_index":70,"name":{"66":{}},"parent":{}}],["sub",{"_index":10,"name":{"8":{}},"parent":{}}],["token",{"_index":180,"name":{"213":{}},"parent":{"214":{},"216":{},"221":{},"223":{}}}],["token.accesstokenrequest",{"_index":185,"name":{},"parent":{"217":{},"218":{},"219":{},"220":{}}}],["token.afterrefresh",{"_index":182,"name":{},"parent":{"215":{}}}],["token.getaccesstoken",{"_index":190,"name":{},"parent":{"224":{}}}],["token.getaccesstokenresult",{"_index":189,"name":{},"parent":{"222":{}}}],["transient",{"_index":76,"name":{"71":{}},"parent":{}}],["unauthorized",{"_index":90,"name":{"85":{}},"parent":{}}],["updated_at",{"_index":11,"name":{"9":{}},"parent":{}}],["updatesession",{"_index":174,"name":{"190":{},"204":{},"240":{},"369":{},"389":{}},"parent":{}}],["user",{"_index":2,"name":{"1":{},"13":{},"35":{},"233":{}},"parent":{"2":{},"11":{},"18":{},"21":{},"22":{},"23":{},"25":{},"26":{}}}],["user.requesterror",{"_index":22,"name":{},"parent":{"19":{},"20":{}}}],["user.usercontext",{"_index":15,"name":{},"parent":{"12":{}}}],["user.usercontext.__type",{"_index":16,"name":{},"parent":{"13":{},"14":{},"15":{},"16":{},"17":{}}}],["user.userprofile",{"_index":5,"name":{},"parent":{"3":{},"4":{},"5":{},"6":{},"7":{},"8":{},"9":{},"10":{}}}],["user.userprovider",{"_index":27,"name":{},"parent":{"24":{}}}],["usercontext",{"_index":13,"name":{"11":{}},"parent":{}}],["userprofile",{"_index":3,"name":{"2":{},"300":{}},"parent":{}}],["userprops",{"_index":38,"name":{"34":{}},"parent":{}}],["userprovider",{"_index":26,"name":{"23":{},"298":{}},"parent":{}}],["userproviderprops",{"_index":24,"name":{"21":{},"299":{}},"parent":{}}],["useuser",{"_index":25,"name":{"22":{},"302":{}},"parent":{}}],["utils/errors",{"_index":201,"name":{"242":{}},"parent":{"243":{},"249":{},"256":{},"262":{},"268":{},"275":{},"282":{},"289":{}}}],["utils/errors.accesstokenerror",{"_index":215,"name":{},"parent":{"257":{},"258":{},"259":{},"260":{},"261":{}}}],["utils/errors.accesstokenerrorcode",{"_index":208,"name":{},"parent":{"250":{},"251":{},"252":{},"253":{},"254":{},"255":{}}}],["utils/errors.autherror",{"_index":203,"name":{},"parent":{"244":{},"245":{},"246":{},"247":{},"248":{}}}],["utils/errors.callbackhandlererror",{"_index":219,"name":{},"parent":{"269":{},"270":{},"271":{},"272":{},"273":{},"274":{}}}],["utils/errors.handlererror",{"_index":217,"name":{},"parent":{"263":{},"264":{},"265":{},"266":{},"267":{}}}],["utils/errors.loginhandlererror",{"_index":221,"name":{},"parent":{"276":{},"277":{},"278":{},"279":{},"280":{},"281":{}}}],["utils/errors.logouthandlererror",{"_index":223,"name":{},"parent":{"283":{},"284":{},"285":{},"286":{},"287":{},"288":{}}}],["utils/errors.profilehandlererror",{"_index":225,"name":{},"parent":{"290":{},"291":{},"292":{},"293":{},"294":{},"295":{}}}],["version",{"_index":226,"name":{"296":{}},"parent":{"297":{}}}],["withapiauthrequired",{"_index":162,"name":{"172":{},"196":{},"206":{},"320":{},"356":{}},"parent":{}}],["withmiddlewareauthrequired",{"_index":95,"name":{"91":{},"99":{},"175":{},"305":{}},"parent":{}}],["withpageauthrequired",{"_index":40,"name":{"36":{},"185":{},"197":{},"207":{},"303":{},"322":{},"357":{}},"parent":{}}],["withpageauthrequiredoptions",{"_index":33,"name":{"28":{},"181":{},"304":{},"323":{},"354":{}},"parent":{}}]],"pipeline":[]}} \ No newline at end of file diff --git a/docs/classes/frontend_use_user.requesterror.html b/docs/classes/client_use_user.requesterror.html similarity index 74% rename from docs/classes/frontend_use_user.requesterror.html rename to docs/classes/client_use_user.requesterror.html index 4343e5860..0efb66ff0 100644 --- a/docs/classes/frontend_use_user.requesterror.html +++ b/docs/classes/client_use_user.requesterror.html @@ -53,10 +53,10 @@ @auth0/nextjs-auth0
  • - frontend/use-user + client/use-user
  • - RequestError + RequestError
  • Class RequestError

    @@ -69,12 +69,12 @@

    Class RequestError

    -

    The error thrown by the user fetcher.

    +

    The error thrown by the default {@link UserFetcher}.

    -

    The status property contains the status code of the response. It is 0 when the request fails, e.g. due to being - offline.

    -

    This error is not thrown when the status code of the response is 401, because that means the user is not - authenticated.

    +

    The status property contains the status code of the response. It is 0 when the request + fails, for example due to being offline.

    +

    This error is not thrown when the status code of the response is 204, because that means the + user is not authenticated.

    @@ -97,13 +97,13 @@

    Index

    Constructors

    Properties

    @@ -115,14 +115,14 @@

    Constructors

    constructor

    -

    Returns RequestError

    +

    Returns RequestError

    @@ -144,7 +144,7 @@

    status

    status: number
    @@ -157,16 +157,19 @@

    status

    Exports
  • - config + client +
  • +
  • + client/use-user
  • - frontend + client/with-page-auth-required
  • -
  • - frontend/use-user +
  • + config
  • - frontend/with-page-auth-required + edge
  • handlers @@ -190,16 +193,19 @@

    status

    helpers
  • - helpers/get-server-side-props-wrapper + helpers/testing
  • helpers/with-api-auth-required
  • +
  • + helpers/with-middleware-auth-required +
  • helpers/with-page-auth-required
  • - instance + index
  • session @@ -213,6 +219,9 @@

    status

  • session/session
  • +
  • + session/update-session +
  • utils/errors
  • @@ -226,35 +235,35 @@

    status

    @@ -267,14 +276,19 @@

    Legend

    + diff --git a/docs/classes/index.applicationerror.html b/docs/classes/index.applicationerror.html new file mode 100644 index 000000000..05bf0eb8a --- /dev/null +++ b/docs/classes/index.applicationerror.html @@ -0,0 +1,255 @@ + + + + + + ApplicationError | @auth0/nextjs-auth0 + + + + + + +
    +
    +
    +
    + +
    +
    + Options +
    +
    + All +
      +
    • Public
    • +
    • Public/Protected
    • +
    • All
    • +
    +
    + + +
    +
    + Menu +
    +
    +
    +
    +
    +
    + +

    Class ApplicationError

    +
    +
    +
    +
    +
    +
    +
    +

    Hierarchy

    +
      +
    • + EscapedError +
        +
      • + ApplicationError +
      • +
      +
    • +
    +
    +
    +

    Index

    +
    +
    +
    +

    Constructors

    + +
    +
    +
    +
    +
    +

    Constructors

    +
    + +

    constructor

    + +
      +
    • + +
      +
      +

      WARNING The message can contain user input and is only escaped using basic escaping for putting untrusted data + directly into the HTML body

      +
      +
      +

      Parameters

      +
        +
      • +
        rpError: RPError
        +
      • +
      +

      Returns ApplicationError

      +
    • +
    +
    +
    +
    + +
    +
    + +
    + + + \ No newline at end of file diff --git a/docs/classes/index.identityprovidererror.html b/docs/classes/index.identityprovidererror.html new file mode 100644 index 000000000..a0b7acc0f --- /dev/null +++ b/docs/classes/index.identityprovidererror.html @@ -0,0 +1,306 @@ + + + + + + IdentityProviderError | @auth0/nextjs-auth0 + + + + + + +
    +
    +
    +
    + +
    +
    + Options +
    +
    + All +
      +
    • Public
    • +
    • Public/Protected
    • +
    • All
    • +
    +
    + + +
    +
    + Menu +
    +
    +
    +
    +
    +
    + +

    Class IdentityProviderError

    +
    +
    +
    +
    +
    +
    +
    +

    Hierarchy

    +
      +
    • + EscapedError +
        +
      • + IdentityProviderError +
      • +
      +
    • +
    +
    +
    +

    Index

    +
    +
    +
    +

    Constructors

    + +
    +
    +

    Properties

    + +
    +
    +
    +
    +
    +

    Constructors

    +
    + +

    constructor

    + +
      +
    • + +
      +
      +

      WARNING The message can contain user input and is only escaped using basic escaping for putting untrusted data + directly into the HTML body

      +
      +
      +

      Parameters

      +
        +
      • +
        rpError: OPError
        +
      • +
      +

      Returns IdentityProviderError

      +
    • +
    +
    +
    +
    +

    Properties

    +
    + +

    Optional error

    +
    error: string
    + +
    +
    +

    The 'error' parameter from the AS response + WARNING This can contain user input and is only escaped using basic escaping for putting untrusted data + directly into the HTML body

    +
    +
    +
    +
    + +

    Optional errorDescription

    +
    errorDescription: string
    + +
    +
    +

    The 'error_description' parameter from the AS response. + WARNING This can contain user input and is only escaped using basic escaping for putting untrusted data + directly into the HTML body

    +
    +
    +
    +
    +
    + +
    +
    + +
    + + + \ No newline at end of file diff --git a/docs/classes/index.missingstatecookieerror.html b/docs/classes/index.missingstatecookieerror.html new file mode 100644 index 000000000..29035ccfc --- /dev/null +++ b/docs/classes/index.missingstatecookieerror.html @@ -0,0 +1,268 @@ + + + + + + MissingStateCookieError | @auth0/nextjs-auth0 + + + + + + +
    +
    +
    +
    + +
    +
    + Options +
    +
    + All +
      +
    • Public
    • +
    • Public/Protected
    • +
    • All
    • +
    +
    + + +
    +
    + Menu +
    +
    +
    +
    +
    +
    + +

    Class MissingStateCookieError

    +
    +
    +
    +
    +
    +
    +
    +

    Hierarchy

    +
      +
    • + Error +
        +
      • + MissingStateCookieError +
      • +
      +
    • +
    +
    +
    +

    Index

    +
    +
    +
    +

    Constructors

    + +
    +
    +

    Properties

    + +
    +
    +
    +
    +
    +

    Constructors

    +
    + +

    constructor

    + + +
    +
    +
    +

    Properties

    +
    + +

    Static message

    +
    message: string = 'Missing state cookie from login request (check login URL, callback URL and cookie config).'
    + +
    +
    +
    + +
    +
    + +
    + + + \ No newline at end of file diff --git a/docs/classes/index.missingstateparamerror.html b/docs/classes/index.missingstateparamerror.html new file mode 100644 index 000000000..8861b62c0 --- /dev/null +++ b/docs/classes/index.missingstateparamerror.html @@ -0,0 +1,268 @@ + + + + + + MissingStateParamError | @auth0/nextjs-auth0 + + + + + + +
    +
    +
    +
    + +
    +
    + Options +
    +
    + All +
      +
    • Public
    • +
    • Public/Protected
    • +
    • All
    • +
    +
    + + +
    +
    + Menu +
    +
    +
    +
    +
    +
    + +

    Class MissingStateParamError

    +
    +
    +
    +
    +
    +
    +
    +

    Hierarchy

    +
      +
    • + Error +
        +
      • + MissingStateParamError +
      • +
      +
    • +
    +
    +
    +

    Index

    +
    +
    +
    +

    Constructors

    + +
    +
    +

    Properties

    + +
    +
    +
    +
    +
    +

    Constructors

    +
    + +

    constructor

    + + +
    +
    +
    +

    Properties

    +
    + +

    Static message

    +
    message: string = 'Missing state parameter in Authorization Response.'
    + +
    +
    +
    + +
    +
    + +
    + + + \ No newline at end of file diff --git a/docs/classes/session.sessioncache.html b/docs/classes/index.sessioncache.html similarity index 55% rename from docs/classes/session.sessioncache.html rename to docs/classes/index.sessioncache.html index 3fe7f7c27..d4255a2c0 100644 --- a/docs/classes/session.sessioncache.html +++ b/docs/classes/index.sessioncache.html @@ -53,19 +53,30 @@ @auth0/nextjs-auth0
  • - session + index
  • - SessionCache + SessionCache
  • -

    Class SessionCache

    +

    Class SessionCache<Req, Res>

    +
    +

    Type parameters

    +
      +
    • +

      Req: object = IncomingMessage | NextApiRequest

      +
    • +
    • +

      Res: object = ServerResponse | NextApiResponse

      +
    • +
    +

    Hierarchy

    @@ -109,29 +119,38 @@

    Methods

    Constructors

    -
    +

    constructor

    -
      -
    • new SessionCache(config: Config, cookieStore: default): SessionCache
    • +
        +
      • new SessionCache<Req, Res>(config: Config, cookieStore: default<Req, Res>): SessionCache<Req, Res>
    @@ -142,29 +161,29 @@

    Methods

    create

      -
    • create(req: NextApiOrPageRequest, res: NextApiOrPageResponse, session: default): void
    • +
    • create(req: Req, res: Res, session: default): Promise<void>
    @@ -172,26 +191,26 @@

    Returns void

    delete

      -
    • delete(req: NextApiOrPageRequest, res: NextApiOrPageResponse): void
    • +
    • delete(req: Req, res: Res): Promise<void>
    • Parameters

      • -
        req: NextApiOrPageRequest
        +
        req: Req
      • -
        res: NextApiOrPageResponse
        +
        res: Res
      -

      Returns void

      +

      Returns Promise<void>

    @@ -206,7 +225,7 @@

    fromTokenSet

    Parameters

    @@ -223,25 +242,25 @@

    Returns

    get

    @@ -249,55 +268,26 @@

    Returns undefined

    getIdToken

      -
    • getIdToken(req: NextApiOrPageRequest, res: NextApiOrPageResponse): undefined | string
    • +
    • getIdToken(req: Req, res: Res): Promise<undefined | string>
    • -

      Parameters

      -
        -
      • -
        req: NextApiOrPageRequest
        -
      • -
      • -
        res: NextApiOrPageResponse
        -
      • -
      -

      Returns undefined | string

      -
    • -
    - -
    - -

    init

    -
      -
    • init(req: NextApiOrPageRequest, res: NextApiOrPageResponse, autoSave?: boolean): void
    • -
    -
      -
    • -

      Parameters

      • -
        req: NextApiOrPageRequest
        +
        req: Req
      • -
        res: NextApiOrPageResponse
        -
      • -
      • -
        autoSave: boolean = true
        +
        res: Res
      -

      Returns void

      +

      Returns Promise<undefined | string>

    @@ -305,26 +295,26 @@

    Returns void

    isAuthenticated

      -
    • isAuthenticated(req: NextApiOrPageRequest, res: NextApiOrPageResponse): boolean
    • +
    • isAuthenticated(req: Req, res: Res): Promise<boolean>
    • Parameters

      • -
        req: NextApiOrPageRequest
        +
        req: Req
      • -
        res: NextApiOrPageResponse
        +
        res: Res
      -

      Returns boolean

      +

      Returns Promise<boolean>

    @@ -332,25 +322,25 @@

    Returns boolean

    save

      -
    • save(req: NextApiOrPageRequest, res: NextApiOrPageResponse): void
    • +
    • save(req: Req, res: Res): Promise<void>
    @@ -358,28 +348,28 @@

    Returns void

    set

      -
    • set(req: NextApiOrPageRequest, res: NextApiOrPageResponse, session: null | default): void
    • +
    • set(req: Req, res: Res, session: null | default): Promise<void>
    @@ -392,16 +382,19 @@

    Returns voidExports
  • - config + client
  • - frontend + client/use-user
  • - frontend/use-user + client/with-page-auth-required
  • - frontend/with-page-auth-required + config +
  • +
  • + edge
  • handlers @@ -425,18 +418,21 @@

    Returns voidhelpers

  • - helpers/get-server-side-props-wrapper + helpers/testing
  • helpers/with-api-auth-required
  • - helpers/with-page-auth-required + helpers/with-middleware-auth-required
  • - instance + helpers/with-page-auth-required
  • + index +
  • +
  • session
  • @@ -448,6 +444,9 @@

    Returns void session/session

  • +
  • + session/update-session +
  • utils/errors
  • @@ -458,58 +457,37 @@

    Returns void @@ -254,17 +365,24 @@

    Legend

    • Function
    • +
    • Function with type parameter
    • Type alias
    • Type alias with type parameter
    • Class
    • +
    • Class with type parameter
    • Constructor
    • -
    • Property
    • +
    +
      +
    • Enumeration
    • Interface
    +
      +
    • Inherited property
    • +

    diff --git a/docs/classes/utils_errors.autherror.html b/docs/classes/utils_errors.autherror.html new file mode 100644 index 000000000..a909281c2 --- /dev/null +++ b/docs/classes/utils_errors.autherror.html @@ -0,0 +1,384 @@ + + + + + + AuthError | @auth0/nextjs-auth0 + + + + + + +
    +
    +
    +
    + +
    +
    + Options +
    +
    + All +
      +
    • Public
    • +
    • Public/Protected
    • +
    • All
    • +
    +
    + + +
    +
    + Menu +
    +
    +
    +
    +
    +
    + +

    Class AuthError

    +
    +
    +
    +
    +
    +
    +
    +
    +
    +

    The base class for all SDK errors.

    +
    +

    Because part of the error message can come from the OpenID Connect error query parameter we + do some basic escaping which makes sure the default error handler is safe from XSS.

    +

    IMPORTANT If you write your own error handler, you should not render the error + without using a templating engine that will properly escape it for other HTML contexts first.

    +

    Note that the error message of the underlying error is not escaped + in any way, so do not render it without escaping it first!

    +
    +
    +
    +

    Hierarchy

    + +
    +
    +

    Index

    +
    +
    +
    +

    Constructors

    + +
    +
    +

    Properties

    + +
    +
    +
    +
    +
    +

    Constructors

    +
    + +

    constructor

    +
      +
    • new AuthError(options: AuthErrorOptions): AuthError
    • +
    + +
    +
    +
    +

    Properties

    +
    + +

    Optional Readonly cause

    +
    cause: Error
    + +
    +
    +

    The underlying error, if any.

    +
    +

    IMPORTANT When this error is from the Identity Provider (IdentityProviderError) it can contain user + input and is only escaped using basic escaping for putting untrusted data directly into the HTML body.

    +

    You should not render this error without using a templating engine that will properly escape it for other + HTML contexts first.

    +
    +
    +
    + +

    Readonly code

    +
    code: string
    + +
    +
    +

    A machine-readable error code that remains stable within a major version of the SDK. You + should rely on this error code to handle errors. In contrast, the error message is not part of + the API and can change anytime. Do not parse or otherwise rely on the error message to + handle errors.

    +
    +
    +
    +
    + +

    Readonly name

    +
    name: string
    + +
    +
    +

    The error class name.

    +
    +
    +
    +
    + +

    Optional Readonly status

    +
    status: number
    + +
    +
    +

    The HTTP status code, if any.

    +
    +
    +
    +
    +
    + +
    +
    + +
    + + + \ No newline at end of file diff --git a/docs/classes/utils_errors.callbackhandlererror.html b/docs/classes/utils_errors.callbackhandlererror.html new file mode 100644 index 000000000..8eacdb910 --- /dev/null +++ b/docs/classes/utils_errors.callbackhandlererror.html @@ -0,0 +1,409 @@ + + + + + + CallbackHandlerError | @auth0/nextjs-auth0 + + + + + + +
    +
    +
    +
    + +
    +
    + Options +
    +
    + All +
      +
    • Public
    • +
    • Public/Protected
    • +
    • All
    • +
    +
    + + +
    +
    + Menu +
    +
    +
    +
    +
    +
    + +

    Class CallbackHandlerError

    +
    +
    +
    +
    +
    +
    +
    +
    +
    +

    The error thrown by the callback API route handler. It extends HandlerError.

    +
    +

    Because part of the error message can come from the OpenID Connect error query parameter we + do some basic escaping which makes sure the default error handler is safe from XSS.

    +

    IMPORTANT If you write your own error handler, you should not render the error message + without using a templating engine that will properly escape it for other HTML contexts first.

    +
    +
    see
    +

    the cause property contains the underlying error. + IMPORTANT When this error is from the Identity Provider (IdentityProviderError) it can contain user + input and is only escaped using basic escaping for putting untrusted data directly into the HTML body. + You should not render this error without using a templating engine that will properly escape it for other + HTML contexts first.

    +
    +
    see
    +

    the status property contains the HTTP status code of the error, + if any.

    +
    +
    +
    +
    +
    +

    Hierarchy

    + +
    +
    +

    Index

    +
    +
    +
    +

    Constructors

    + +
    +
    +

    Properties

    + +
    +
    +
    +
    +
    +

    Constructors

    +
    + +

    constructor

    + + +
    +
    +
    +

    Properties

    +
    + +

    Optional Readonly cause

    +
    cause: Error
    + +
    +
    +

    The underlying error, if any.

    +
    +

    IMPORTANT When this error is from the Identity Provider (IdentityProviderError) it can contain user + input and is only escaped using basic escaping for putting untrusted data directly into the HTML body.

    +

    You should not render this error without using a templating engine that will properly escape it for other + HTML contexts first.

    +
    +
    +
    + +

    Readonly code

    +
    code: string
    + +
    +
    +

    A machine-readable error code that remains stable within a major version of the SDK. You + should rely on this error code to handle errors. In contrast, the error message is not part of + the API and can change anytime. Do not parse or otherwise rely on the error message to + handle errors.

    +
    +
    +
    +
    + +

    Readonly name

    +
    name: string
    + +
    +
    +

    The error class name.

    +
    +
    +
    +
    + +

    Optional Readonly status

    +
    status: number
    + +
    +
    +

    The HTTP status code, if any.

    +
    +
    +
    +
    + +

    Static Readonly code

    +
    code: string = 'ERR_CALLBACK_HANDLER_FAILURE'
    + +
    +
    +
    + +
    +
    + +
    + + + \ No newline at end of file diff --git a/docs/classes/utils_errors.handlererror.html b/docs/classes/utils_errors.handlererror.html index 775097b03..88f0c5b1d 100644 --- a/docs/classes/utils_errors.handlererror.html +++ b/docs/classes/utils_errors.handlererror.html @@ -69,22 +69,49 @@

    Class HandlerError

    -

    The error thrown by API route handlers.

    +

    The base class for errors thrown by API route handlers. It extends AuthError.

    -

    Because the error message can come from the OpenID Connect error query parameter we +

    Because part of the error message can come from the OpenID Connect error query parameter we do some basic escaping which makes sure the default error handler is safe from XSS.

    -

    If you write your own error handler, you should not render the error message +

    IMPORTANT If you write your own error handler, you should not render the error message without using a templating engine that will properly escape it for other HTML contexts first.

    +
    +
    see
    +

    the cause property contains the underlying error. + IMPORTANT When this error is from the Identity Provider (IdentityProviderError) it can contain user + input and is only escaped using basic escaping for putting untrusted data directly into the HTML body. + You should not render this error without using a templating engine that will properly escape it for other + HTML contexts first.

    +
    +
    see
    +

    the status property contains the HTTP status code of the error, + if any.

    +
    +

    Hierarchy

    -
    +

    Properties

    @@ -116,20 +145,20 @@

    Constructors

    constructor

    @@ -269,17 +379,24 @@

    Legend

    + +
    diff --git a/docs/classes/utils_errors.loginhandlererror.html b/docs/classes/utils_errors.loginhandlererror.html new file mode 100644 index 000000000..7b431ab8a --- /dev/null +++ b/docs/classes/utils_errors.loginhandlererror.html @@ -0,0 +1,397 @@ + + + + + + LoginHandlerError | @auth0/nextjs-auth0 + + + + + + +
    +
    +
    +
    + +
    +
    + Options +
    +
    + All +
      +
    • Public
    • +
    • Public/Protected
    • +
    • All
    • +
    +
    + + +
    +
    + Menu +
    +
    +
    +
    +
    +
    + +

    Class LoginHandlerError

    +
    +
    +
    +
    +
    +
    +
    +
    +
    +

    The error thrown by the login API route handler. It extends HandlerError.

    +
    +
    +
    see
    +

    the cause property contains the underlying error.

    +
    +
    +
    +
    +
    +

    Hierarchy

    + +
    +
    +

    Index

    +
    +
    +
    +

    Constructors

    + +
    +
    +

    Properties

    + +
    +
    +
    +
    +
    +

    Constructors

    +
    + +

    constructor

    + + +
    +
    +
    +

    Properties

    +
    + +

    Optional Readonly cause

    +
    cause: Error
    + +
    +
    +

    The underlying error, if any.

    +
    +

    IMPORTANT When this error is from the Identity Provider (IdentityProviderError) it can contain user + input and is only escaped using basic escaping for putting untrusted data directly into the HTML body.

    +

    You should not render this error without using a templating engine that will properly escape it for other + HTML contexts first.

    +
    +
    +
    + +

    Readonly code

    +
    code: string
    + +
    +
    +

    A machine-readable error code that remains stable within a major version of the SDK. You + should rely on this error code to handle errors. In contrast, the error message is not part of + the API and can change anytime. Do not parse or otherwise rely on the error message to + handle errors.

    +
    +
    +
    +
    + +

    Readonly name

    +
    name: string
    + +
    +
    +

    The error class name.

    +
    +
    +
    +
    + +

    Optional Readonly status

    +
    status: number
    + +
    +
    +

    The HTTP status code, if any.

    +
    +
    +
    +
    + +

    Static Readonly code

    +
    code: string = 'ERR_LOGIN_HANDLER_FAILURE'
    + +
    +
    +
    + +
    +
    + +
    + + + \ No newline at end of file diff --git a/docs/classes/utils_errors.logouthandlererror.html b/docs/classes/utils_errors.logouthandlererror.html new file mode 100644 index 000000000..3ac9770d0 --- /dev/null +++ b/docs/classes/utils_errors.logouthandlererror.html @@ -0,0 +1,397 @@ + + + + + + LogoutHandlerError | @auth0/nextjs-auth0 + + + + + + +
    +
    +
    +
    + +
    +
    + Options +
    +
    + All +
      +
    • Public
    • +
    • Public/Protected
    • +
    • All
    • +
    +
    + + +
    +
    + Menu +
    +
    +
    +
    +
    +
    + +

    Class LogoutHandlerError

    +
    +
    +
    +
    +
    +
    +
    +
    +
    +

    The error thrown by the logout API route handler. It extends HandlerError.

    +
    +
    +
    see
    +

    the cause property contains the underlying error.

    +
    +
    +
    +
    +
    +

    Hierarchy

    + +
    +
    +

    Index

    +
    +
    +
    +

    Constructors

    + +
    +
    +

    Properties

    + +
    +
    +
    +
    +
    +

    Constructors

    +
    + +

    constructor

    + + +
    +
    +
    +

    Properties

    +
    + +

    Optional Readonly cause

    +
    cause: Error
    + +
    +
    +

    The underlying error, if any.

    +
    +

    IMPORTANT When this error is from the Identity Provider (IdentityProviderError) it can contain user + input and is only escaped using basic escaping for putting untrusted data directly into the HTML body.

    +

    You should not render this error without using a templating engine that will properly escape it for other + HTML contexts first.

    +
    +
    +
    + +

    Readonly code

    +
    code: string
    + +
    +
    +

    A machine-readable error code that remains stable within a major version of the SDK. You + should rely on this error code to handle errors. In contrast, the error message is not part of + the API and can change anytime. Do not parse or otherwise rely on the error message to + handle errors.

    +
    +
    +
    +
    + +

    Readonly name

    +
    name: string
    + +
    +
    +

    The error class name.

    +
    +
    +
    +
    + +

    Optional Readonly status

    +
    status: number
    + +
    +
    +

    The HTTP status code, if any.

    +
    +
    +
    +
    + +

    Static Readonly code

    +
    code: string = 'ERR_LOGOUT_HANDLER_FAILURE'
    + +
    +
    +
    + +
    +
    + +
    + + + \ No newline at end of file diff --git a/docs/classes/utils_errors.profilehandlererror.html b/docs/classes/utils_errors.profilehandlererror.html new file mode 100644 index 000000000..379fc1ee0 --- /dev/null +++ b/docs/classes/utils_errors.profilehandlererror.html @@ -0,0 +1,397 @@ + + + + + + ProfileHandlerError | @auth0/nextjs-auth0 + + + + + + +
    +
    +
    +
    + +
    +
    + Options +
    +
    + All +
      +
    • Public
    • +
    • Public/Protected
    • +
    • All
    • +
    +
    + + +
    +
    + Menu +
    +
    +
    +
    +
    +
    + +

    Class ProfileHandlerError

    +
    +
    +
    +
    +
    +
    +
    +
    +
    +

    The error thrown by the profile API route handler. It extends HandlerError.

    +
    +
    +
    see
    +

    the cause property contains the underlying error.

    +
    +
    +
    +
    +
    +

    Hierarchy

    + +
    +
    +

    Index

    +
    +
    +
    +

    Constructors

    + +
    +
    +

    Properties

    + +
    +
    +
    +
    +
    +

    Constructors

    +
    + +

    constructor

    + + +
    +
    +
    +

    Properties

    +
    + +

    Optional Readonly cause

    +
    cause: Error
    + +
    +
    +

    The underlying error, if any.

    +
    +

    IMPORTANT When this error is from the Identity Provider (IdentityProviderError) it can contain user + input and is only escaped using basic escaping for putting untrusted data directly into the HTML body.

    +

    You should not render this error without using a templating engine that will properly escape it for other + HTML contexts first.

    +
    +
    +
    + +

    Readonly code

    +
    code: string
    + +
    +
    +

    A machine-readable error code that remains stable within a major version of the SDK. You + should rely on this error code to handle errors. In contrast, the error message is not part of + the API and can change anytime. Do not parse or otherwise rely on the error message to + handle errors.

    +
    +
    +
    +
    + +

    Readonly name

    +
    name: string
    + +
    +
    +

    The error class name.

    +
    +
    +
    +
    + +

    Optional Readonly status

    +
    status: number
    + +
    +
    +

    The HTTP status code, if any.

    +
    +
    +
    +
    + +

    Static Readonly code

    +
    code: string = 'ERR_PROFILE_HANDLER_FAILURE'
    + +
    +
    +
    + +
    +
    + +
    + + + \ No newline at end of file diff --git a/docs/enums/utils_errors.accesstokenerrorcode.html b/docs/enums/utils_errors.accesstokenerrorcode.html new file mode 100644 index 000000000..5d993ca87 --- /dev/null +++ b/docs/enums/utils_errors.accesstokenerrorcode.html @@ -0,0 +1,319 @@ + + + + + + AccessTokenErrorCode | @auth0/nextjs-auth0 + + + + + + +
    +
    +
    +
    + +
    +
    + Options +
    +
    + All +
      +
    • Public
    • +
    • Public/Protected
    • +
    • All
    • +
    +
    + + +
    +
    + Menu +
    +
    +
    +
    +
    +
    + +

    Enumeration AccessTokenErrorCode

    +
    +
    +
    +
    +
    +
    +
    +
    +
    +

    Error codes for AccessTokenError.

    +
    +
    +
    +
    +

    Index

    +
    + +
    +
    +
    +

    Enumeration members

    +
    + +

    EXPIRED_ACCESS_TOKEN

    +
    EXPIRED_ACCESS_TOKEN: = "ERR_EXPIRED_ACCESS_TOKEN"
    + +
    +
    + +

    FAILED_REFRESH_GRANT

    +
    FAILED_REFRESH_GRANT: = "ERR_FAILED_REFRESH_GRANT"
    + +
    +
    + +

    INSUFFICIENT_SCOPE

    +
    INSUFFICIENT_SCOPE: = "ERR_INSUFFICIENT_SCOPE"
    + +
    +
    + +

    MISSING_ACCESS_TOKEN

    +
    MISSING_ACCESS_TOKEN: = "ERR_MISSING_ACCESS_TOKEN"
    + +
    +
    + +

    MISSING_REFRESH_TOKEN

    +
    MISSING_REFRESH_TOKEN: = "ERR_MISSING_REFRESH_TOKEN"
    + +
    +
    + +

    MISSING_SESSION

    +
    MISSING_SESSION: = "ERR_MISSING_SESSION"
    + +
    +
    +
    + +
    +
    + +
    + + + \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index ad5e1b658..736242d2e 100644 --- a/docs/index.html +++ b/docs/index.html @@ -62,10 +62,11 @@

    Index

    Modules

    @@ -96,16 +99,19 @@

    Modules

    Exports
  • - config + client +
  • +
  • + client/use-user
  • - frontend + client/with-page-auth-required
  • - frontend/use-user + config
  • - frontend/with-page-auth-required + edge
  • handlers @@ -129,16 +135,19 @@

    Modules

    helpers
  • - helpers/get-server-side-props-wrapper + helpers/testing
  • helpers/with-api-auth-required
  • +
  • + helpers/with-middleware-auth-required +
  • helpers/with-page-auth-required
  • - instance + index
  • session @@ -152,6 +161,9 @@

    Modules

  • session/session
  • +
  • + session/update-session +
  • utils/errors
  • @@ -173,14 +185,19 @@

    Legend

    +
    diff --git a/docs/interfaces/frontend_use_user.userprofile.html b/docs/interfaces/client_use_user.userprofile.html similarity index 75% rename from docs/interfaces/frontend_use_user.userprofile.html rename to docs/interfaces/client_use_user.userprofile.html index a67143004..54abda603 100644 --- a/docs/interfaces/frontend_use_user.userprofile.html +++ b/docs/interfaces/client_use_user.userprofile.html @@ -53,10 +53,10 @@ @auth0/nextjs-auth0
  • - frontend/use-user + client/use-user
  • - UserProfile + UserProfile
  • Interface UserProfile

    @@ -69,7 +69,7 @@

    Interface UserProfile

    -

    The user claims returned from the {@link useUser} hook.

    +

    The user claims returned from the useUser hook.

    @@ -86,7 +86,7 @@

    Indexable

    [key: string]: unknown
    -

    The user claims returned from the {@link useUser} hook.

    +

    The user claims returned from the useUser hook.

    @@ -97,14 +97,14 @@

    Index

    Properties

    @@ -118,7 +118,7 @@

    Optional email

    email: null | string
    @@ -128,7 +128,7 @@

    Optional email_verifiedemail_verified: null | boolean @@ -138,7 +138,7 @@

    Optional name

    name: null | string
    @@ -148,7 +148,7 @@

    Optional nickname

    nickname: null | string
    @@ -158,7 +158,7 @@

    Optional org_id

    org_id: null | string
    @@ -168,7 +168,7 @@

    Optional picture

    picture: null | string
    @@ -178,7 +178,7 @@

    Optional sub

    sub: null | string
    @@ -188,7 +188,7 @@

    Optional updated_at

    updated_at: null | string
    @@ -201,16 +201,19 @@

    Optional updated_at

    Exports
  • - config + client +
  • +
  • + client/use-user
  • - frontend + client/with-page-auth-required
  • -
  • - frontend/use-user +
  • + config
  • - frontend/with-page-auth-required + edge
  • handlers @@ -234,16 +237,19 @@

    Optional updated_at

    helpers
  • - helpers/get-server-side-props-wrapper + helpers/testing
  • helpers/with-api-auth-required
  • +
  • + helpers/with-middleware-auth-required +
  • helpers/with-page-auth-required
  • - instance + index
  • session @@ -257,6 +263,9 @@

    Optional updated_at

  • session/session
  • +
  • + session/update-session +
  • utils/errors
  • @@ -268,55 +277,55 @@

    Optional updated_at

    @@ -329,6 +338,7 @@

    Legend

    @@ -338,6 +348,10 @@

    Legend

    +
    diff --git a/docs/interfaces/frontend_with_page_auth_required.userprops.html b/docs/interfaces/client_with_page_auth_required.userprops.html similarity index 76% rename from docs/interfaces/frontend_with_page_auth_required.userprops.html rename to docs/interfaces/client_with_page_auth_required.userprops.html index 78d0d4ccd..a9fbeefdc 100644 --- a/docs/interfaces/frontend_with_page_auth_required.userprops.html +++ b/docs/interfaces/client_with_page_auth_required.userprops.html @@ -53,10 +53,10 @@ @auth0/nextjs-auth0
  • - frontend/with-page-auth-required + client/with-page-auth-required
  • - UserProps + UserProps
  • Interface UserProps

    @@ -81,7 +81,7 @@

    Index

    Properties

    @@ -92,10 +92,10 @@

    Properties

    user

    -
    user: UserProfile
    +
    user: UserProfile
    @@ -108,16 +108,19 @@

    user

    Exports
  • - config + client
  • - frontend + client/use-user +
  • +
  • + client/with-page-auth-required
  • - frontend/use-user + config
  • -
  • - frontend/with-page-auth-required +
  • + edge
  • handlers @@ -141,16 +144,19 @@

    user

    helpers
  • - helpers/get-server-side-props-wrapper + helpers/testing
  • helpers/with-api-auth-required
  • +
  • + helpers/with-middleware-auth-required +
  • helpers/with-page-auth-required
  • - instance + index
  • session @@ -164,6 +170,9 @@

    user

  • session/session
  • +
  • + session/update-session +
  • utils/errors
  • @@ -177,20 +186,20 @@

    user

    @@ -203,6 +212,7 @@

    Legend

    @@ -212,6 +222,10 @@

    Legend

    +
    diff --git a/docs/interfaces/frontend_with_page_auth_required.withpageauthrequiredoptions.html b/docs/interfaces/client_with_page_auth_required.withpageauthrequiredoptions.html similarity index 82% rename from docs/interfaces/frontend_with_page_auth_required.withpageauthrequiredoptions.html rename to docs/interfaces/client_with_page_auth_required.withpageauthrequiredoptions.html index 4b90e17f8..c79e80504 100644 --- a/docs/interfaces/frontend_with_page_auth_required.withpageauthrequiredoptions.html +++ b/docs/interfaces/client_with_page_auth_required.withpageauthrequiredoptions.html @@ -53,10 +53,10 @@ @auth0/nextjs-auth0
  • - frontend/with-page-auth-required + client/with-page-auth-required
  • - WithPageAuthRequiredOptions + WithPageAuthRequiredOptions
  • Interface WithPageAuthRequiredOptions

    @@ -69,7 +69,7 @@

    Interface WithPageAuthRequiredOptions

    -

    Options for the withPageAuthRequired Higher Order Component

    +

    Options to customize the withPageAuthRequired higher order component.

    @@ -88,9 +88,9 @@

    Index

    Properties

    @@ -104,7 +104,7 @@

    Optional onError

    onError: (error: Error) => Element
    @@ -144,7 +144,7 @@

    Optional onRedirectingonRedirecting: () => Element

    @@ -178,7 +178,7 @@

    Optional returnTo

    returnTo: string
    @@ -200,16 +200,19 @@

    Optional returnTo

    Exports
  • - config + client
  • - frontend + client/use-user +
  • +
  • + client/with-page-auth-required
  • - frontend/use-user + config
  • -
  • - frontend/with-page-auth-required +
  • + edge
  • handlers @@ -233,16 +236,19 @@

    Optional returnTo

    helpers
  • - helpers/get-server-side-props-wrapper + helpers/testing
  • helpers/with-api-auth-required
  • +
  • + helpers/with-middleware-auth-required +
  • helpers/with-page-auth-required
  • - instance + index
  • session @@ -256,6 +262,9 @@

    Optional returnTo

  • session/session
  • +
  • + session/update-session +
  • utils/errors
  • @@ -267,28 +276,28 @@

    Optional returnTo

    @@ -301,6 +310,7 @@

    Legend

    • Function
    • +
    • Function with type parameter
    • Type alias
    • Type alias with type parameter
    @@ -310,6 +320,10 @@

    Legend

    • Class
    • +
    • Class with type parameter
    • +
    +
      +
    • Enumeration
    diff --git a/docs/interfaces/config.authorizationparameters.html b/docs/interfaces/config.authorizationparameters.html index 650d0f512..85e6ca58f 100644 --- a/docs/interfaces/config.authorizationparameters.html +++ b/docs/interfaces/config.authorizationparameters.html @@ -111,7 +111,7 @@

    response_mode

    @@ -122,7 +122,7 @@

    response_type

    @@ -133,9 +133,16 @@

    scope

    +
    +
    +

    A space-separated list of scopes that will be requested during authentication. For example, + openid profile email offline_access. + Defaults to openid profile email.

    +
    +
    @@ -145,17 +152,20 @@

    scope

  • Exports
  • -
  • - config +
  • + client
  • - frontend + client/use-user
  • - frontend/use-user + client/with-page-auth-required +
  • +
  • + config
  • - frontend/with-page-auth-required + edge
  • handlers @@ -179,16 +189,19 @@

    scope

    helpers
  • - helpers/get-server-side-props-wrapper + helpers/testing
  • helpers/with-api-auth-required
  • +
  • + helpers/with-middleware-auth-required +
  • helpers/with-page-auth-required
  • - instance + index
  • session @@ -202,6 +215,9 @@

    scope

  • session/session
  • +
  • + session/update-session +
  • utils/errors
  • @@ -256,6 +272,7 @@

    Legend

    @@ -265,6 +282,10 @@

    Legend

    +
    diff --git a/docs/interfaces/config.baseconfig.html b/docs/interfaces/config.baseconfig.html index 70c7a7692..f49b2b5cf 100644 --- a/docs/interfaces/config.baseconfig.html +++ b/docs/interfaces/config.baseconfig.html @@ -111,7 +111,7 @@

    auth0Logout

    auth0Logout: boolean
    @@ -127,7 +127,7 @@

    authorizationParams

    authorizationParams: AuthorizationParameters
    @@ -148,8 +148,8 @@

    authorizationParams

    scope: 'openid profile email', // Additional parameters - acr_value: "tenant:test-tenant", - custom_param: "custom-value" + acr_value: 'tenant:test-tenant', + custom_param: 'custom-value' };
    @@ -160,15 +160,15 @@

    baseURL

    baseURL: string
    -

    The root URL for the application router, eg https://localhost - You can also use the AUTH0_BASE_URL environment variable. - If you provide a domain, we will prefix it with https:// - This can be useful when assigning it to - VERCEL_URL for Vercel deploys

    +

    The root URL for the application router, for example https://localhost. + You can also use the AUTH0_BASE_URL environment variable. + If you provide a domain, we will prefix it with https://. This can be useful when assigning it to + VERCEL_URL for Vercel deploys.

    @@ -178,13 +178,13 @@

    clientID

    clientID: string

    The Client ID for your application. - You can also use the AUTH0_CLIENT_ID environment variable.

    + You can also use the AUTH0_CLIENT_ID environment variable.

    @@ -194,14 +194,14 @@

    Optional clientSecret

    clientSecret: string

    The Client Secret for your application. Required when requesting access tokens. - You can also use the AUTH0_CLIENT_SECRET environment variable.

    + You can also use the AUTH0_CLIENT_SECRET environment variable.

    @@ -211,14 +211,12 @@

    clockTolerance

    clockTolerance: number
    -

    Integer value for the system clock's tolerance (leeway) in seconds for ID token verification.` - Default is 60 - You can also use the AUTH0_CLOCK_TOLERANCE environment variable.

    +

    Integer value for the system clock's tolerance (leeway) in seconds for ID token verification.Defaults to60seconds. You can also use theAUTH0_CLOCK_TOLERANCE` environment variable.

    @@ -228,14 +226,14 @@

    enableTelemetry

    enableTelemetry: boolean
    -

    To opt-out of sending the library and node version to your authorization server - via the Auth0-Client header. Default is `true - You can also use the AUTH0_ENABLE_TELEMETRY environment variable.

    +

    Boolean value to opt-out of sending the library and node version to your authorization server + via the Auth0-Client header. Defaults to true. + You can also use the AUTH0_ENABLE_TELEMETRY environment variable.

    @@ -245,14 +243,14 @@

    getLoginState

    getLoginState: (req: IncomingMessage, options: LoginOptions) => Record<string, any>

    Function that returns an object with URL-safe state values for login. Used for passing custom state parameters to your authorization server. - Can also be passed in to HandleLogin

    + Can also be passed in to HandleLogin.

    {
       ...
    @@ -263,7 +261,6 @@ 

    getLoginState

    }; } } -``
    @@ -297,14 +294,14 @@

    httpTimeout

    httpTimeout: number
    -

    Integer value for the http timeout in ms for authentication requests. - Default is 5000 - You can also use the AUTH0_HTTP_TIMEOUT environment variable.

    +

    Integer value for the HTTP timeout in milliseconds for authentication requests. + Defaults to 5000 ms. + You can also use the AUTH0_HTTP_TIMEOUT environment variable.

    @@ -314,13 +311,13 @@

    idTokenSigningAlg

    idTokenSigningAlg: string
    -

    String value for the expected ID token algorithm. Default is 'RS256' - You can also use the AUTH0_ID_TOKEN_SIGNING_ALG environment variable.

    +

    String value for the expected ID token algorithm. Defaults to 'RS256'. + You can also use the AUTH0_ID_TOKEN_SIGNING_ALG environment variable.

    @@ -330,14 +327,14 @@

    identityClaimFilter

    identityClaimFilter: string[]

    Array value of claims to remove from the ID token before storing the cookie session. - Default is ['aud', 'iss', 'iat', 'exp', 'nbf', 'nonce', 'azp', 'auth_time', 's_hash', 'at_hash', 'c_hash' ] - You can also use the AUTH0_IDENTITY_CLAIM_FILTER environment variable.

    + Defaults to ['aud', 'iss', 'iat', 'exp', 'nbf', 'nonce', 'azp', 'auth_time', 's_hash', 'at_hash', 'c_hash']. + You can also use the AUTH0_IDENTITY_CLAIM_FILTER environment variable.

    @@ -347,13 +344,13 @@

    idpLogout

    idpLogout: boolean
    -

    Boolean value to log the user out from the identity provider on application logout. Default is true - You can also use the AUTH0_IDP_LOGOUT environment variable.

    +

    Boolean value to log the user out from the identity provider on application logout. Defaults to true. + You can also use the AUTH0_IDP_LOGOUT environment variable.

    @@ -363,14 +360,14 @@

    issuerBaseURL

    issuerBaseURL: string
    -

    REQUIRED. The root URL for the token issuer with no trailing slash. - This is https:// plus your Auth0 domain - You can also use the AUTH0_ISSUER_BASE_URL environment variable.

    +

    REQUIRED The root URL for the token issuer with no trailing slash. + This is https:// plus your Auth0 domain. + You can also use the AUTH0_ISSUER_BASE_URL environment variable.

    @@ -380,14 +377,14 @@

    legacySameSiteCookie

    legacySameSiteCookie: boolean

    Set a fallback cookie with no SameSite attribute when response_mode is form_post. The default response_mode for this SDK is query so this defaults to false - You can also use the AUTH0_LEGACY_SAME_SITE_COOKIE environment variable.

    + You can also use the AUTH0_LEGACY_SAME_SITE_COOKIE environment variable.

    @@ -397,7 +394,7 @@

    routes

    routes: { callback: string; postLogoutRedirect: string }
    @@ -413,8 +410,8 @@
    callback:

    Relative path to the application callback to process the response from the authorization server. - Defaults to /api/auth/callback - You can also use the AUTH0_CALLBACK environment variable.

    + Defaults to /api/auth/callback. + You can also use the AUTH0_CALLBACK environment variable.

    @@ -425,7 +422,7 @@
    postLogoutRedirect: Either a relative path to the application or a valid URI to an external domain. This value must be registered on the authorization server. The user will be redirected to this after a logout has been performed. - You can also use the AUTH0_POST_LOGOUT_REDIRECT environment variable.

    + You can also use the AUTH0_POST_LOGOUT_REDIRECT environment variable.

    @@ -438,15 +435,16 @@

    secret

    secret: string | string[]

    The secret(s) used to derive an encryption key for the user identity in a session cookie and to sign the transient cookies used by the login callback. - Use a single string key or array of keys for an encrypted session cookie. - You can also use the AUTH0_SECRET environment variable.

    + Provide a single string secret, but if you want to rotate the secret you can provide an array putting + the new secret first. + You can also use the AUTH0_SECRET environment variable.

    @@ -456,7 +454,7 @@

    session

    session: SessionConfig
    @@ -473,17 +471,20 @@

    session

  • Exports
  • -
  • - config +
  • + client
  • - frontend + client/use-user
  • - frontend/use-user + client/with-page-auth-required +
  • +
  • + config
  • - frontend/with-page-auth-required + edge
  • handlers @@ -507,16 +508,19 @@

    session

    helpers
  • - helpers/get-server-side-props-wrapper + helpers/testing
  • helpers/with-api-auth-required
  • +
  • + helpers/with-middleware-auth-required +
  • helpers/with-page-auth-required
  • - instance + index
  • session @@ -530,6 +534,9 @@

    session

  • session/session
  • +
  • + session/update-session +
  • utils/errors
  • @@ -626,6 +633,7 @@

    Legend

    @@ -635,6 +643,10 @@

    Legend

    +
    diff --git a/docs/interfaces/config.cookieconfig.html b/docs/interfaces/config.cookieconfig.html index 32e403721..e480ff56d 100644 --- a/docs/interfaces/config.cookieconfig.html +++ b/docs/interfaces/config.cookieconfig.html @@ -107,13 +107,13 @@

    Optional domain

    domain: string

    Domain name for the cookie. - You can also use the AUTH0_COOKIE_DOMAIN environment variable.

    + You can also use the AUTH0_COOKIE_DOMAIN environment variable.

    @@ -123,14 +123,14 @@

    httpOnly

    httpOnly: boolean

    Flags the cookie to be accessible only by the web server. Defaults to true. - You can also use the AUTH0_COOKIE_HTTP_ONLY environment variable.

    + You can also use the AUTH0_COOKIE_HTTP_ONLY environment variable.

    @@ -140,15 +140,15 @@

    Optional path

    path: string

    Path for the cookie. - This defaults to / + Defaults to /. You should change this to be more restrictive if you application shares a domain with other apps. - You can also use the AUTH0_COOKIE_PATH environment variable.

    + You can also use the AUTH0_COOKIE_PATH environment variable.

    @@ -158,14 +158,14 @@

    sameSite

    sameSite: "lax" | "strict" | "none"
    -

    Value of the SameSite Set-Cookie attribute. - Defaults to "lax" but will be adjusted based on AuthorizationParameters.response_type. - You can also use the AUTH0_COOKIE_SAME_SITE environment variable.

    +

    Value of the SameSite Set-Cookie attribute. + Defaults to lax but will be adjusted based on AuthorizationParameters.response_type. + You can also use the AUTH0_COOKIE_SAME_SITE environment variable.

    @@ -175,14 +175,14 @@

    Optional secure

    secure: boolean

    Marks the cookie to be used over secure channels only. Defaults to the protocol of BaseConfig.baseURL. - You can also use the AUTH0_COOKIE_SECURE environment variable.

    + You can also use the AUTH0_COOKIE_SECURE environment variable.

    @@ -192,14 +192,14 @@

    transient

    transient: boolean
    -

    Set to true to use a transient cookie (cookie without an explicit expiration). - Default is false - You can also use the AUTH0_COOKIE_TRANSIENT environment variable.

    +

    Set to true to use a transient cookie (cookie without an explicit expiration). + Defaults to false. + You can also use the AUTH0_COOKIE_TRANSIENT environment variable.

    @@ -211,17 +211,20 @@

    transient

  • Exports
  • -
  • - config +
  • + client
  • - frontend + client/use-user
  • - frontend/use-user + client/with-page-auth-required +
  • +
  • + config
  • - frontend/with-page-auth-required + edge
  • handlers @@ -245,16 +248,19 @@

    transient

    helpers
  • - helpers/get-server-side-props-wrapper + helpers/testing
  • helpers/with-api-auth-required
  • +
  • + helpers/with-middleware-auth-required +
  • helpers/with-page-auth-required
  • - instance + index
  • session @@ -268,6 +274,9 @@

    transient

  • session/session
  • +
  • + session/update-session +
  • utils/errors
  • @@ -331,6 +340,7 @@

    Legend

    @@ -340,6 +350,10 @@

    Legend

    +
    diff --git a/docs/interfaces/config.nextconfig.html b/docs/interfaces/config.nextconfig.html index 241e27300..4f9bdcde5 100644 --- a/docs/interfaces/config.nextconfig.html +++ b/docs/interfaces/config.nextconfig.html @@ -103,14 +103,14 @@

    identityClaimFilter

    Array value of claims to remove from the ID token before storing the cookie session. - Default is ['aud', 'iss', 'iat', 'exp', 'nbf', 'nonce', 'azp', 'auth_time', 's_hash', 'at_hash', 'c_hash' ] - You can also use the AUTH0_IDENTITY_CLAIM_FILTER environment variable.

    + Defaults to ['aud', 'iss', 'iat', 'exp', 'nbf', 'nonce', 'azp', 'auth_time', 's_hash', 'at_hash', 'c_hash']. + You can also use the AUTH0_IDENTITY_CLAIM_FILTER environment variable.

    @@ -120,7 +120,7 @@

    Optional organization

    organization: string
    @@ -128,25 +128,31 @@

    Optional organization

    Log users in to a specific organization.

    This will specify an organization parameter in your user's login request and will add a step to validate - the org_id claim in your user's ID Token.

    -

    If your app supports multiple organizations, you should take a look at AuthorizationParams.organization

    + the org_id claim in your user's ID token.

    +

    If your app supports multiple organizations, you should take a look at AuthorizationParams.organization.

    routes

    -
    routes: { login: string }
    +
    routes: { callback: string; login: string; unauthorized: string }

    Type declaration

    @@ -158,17 +164,20 @@
    login: Exports -
  • - config +
  • + client
  • - frontend + client/use-user
  • - frontend/use-user + client/with-page-auth-required +
  • +
  • + config
  • - frontend/with-page-auth-required + edge
  • handlers @@ -192,16 +201,19 @@
    login: helpers
  • - helpers/get-server-side-props-wrapper + helpers/testing
  • helpers/with-api-auth-required
  • +
  • + helpers/with-middleware-auth-required +
  • helpers/with-page-auth-required
  • - instance + index
  • session @@ -215,6 +227,9 @@
    login: session/session
  • +
  • + session/update-session +
  • utils/errors
  • @@ -269,6 +284,7 @@

    Legend

    • Function
    • +
    • Function with type parameter
    • Type alias
    • Type alias with type parameter
    @@ -278,6 +294,10 @@

    Legend

    • Class
    • +
    • Class with type parameter
    • +
    +
      +
    • Enumeration
    diff --git a/docs/interfaces/config.sessionconfig.html b/docs/interfaces/config.sessionconfig.html index 1db742918..ebcedbaa8 100644 --- a/docs/interfaces/config.sessionconfig.html +++ b/docs/interfaces/config.sessionconfig.html @@ -93,6 +93,7 @@

    Properties

  • name
  • rolling
  • rollingDuration
  • +
  • storeIDToken
  • @@ -106,7 +107,7 @@

    absoluteDuration

    absoluteDuration: number | boolean
    @@ -114,8 +115,8 @@

    absoluteDuration

    Integer value, in seconds, for application absolute rolling duration. The amount of time after the user has logged in that they will be logged out. Set this to false if you don't want an absolute duration on your session. - Default is 604800 seconds (7 days). - You can also use the AUTH0_SESSION_ABSOLUTE_DURATION environment variable.

    + Defaults to 604800 seconds (7 days). + You can also use the AUTH0_SESSION_ABSOLUTE_DURATION environment variable.

    @@ -125,7 +126,7 @@

    cookie

    cookie: CookieConfig
    @@ -135,15 +136,15 @@

    name

    name: string

    String value for the cookie name used for the internal session. This value must only include letters, numbers, and underscores. - Default is appSession. - You can also use the AUTH0_SESSION_NAME environment variable.

    + Defaults to appSession. + You can also use the AUTH0_SESSION_NAME environment variable.

    @@ -153,17 +154,17 @@

    rolling

    rolling: boolean
    -

    If you want your session duration to be rolling, eg reset everytime the - user is active on your site, set this to a true. If you want the session - duration to be absolute, where the user is logged out a fixed time after login, - regardless of activity, set this to false - Default is true. - You can also use the AUTH0_SESSION_ROLLING environment variable.

    +

    If you want your session duration to be rolling, resetting everytime the + user is active on your site, set this to true. If you want the session + duration to be absolute, where the user gets logged out a fixed time after login + regardless of activity, set this to false. + Defaults to true. + You can also use the AUTH0_SESSION_ROLLING environment variable.

    @@ -173,19 +174,36 @@

    rollingDuration

    rollingDuration: number | false

    Integer value, in seconds, for application session rolling duration. The amount of time for which the user must be idle for then to be logged out. - Should be false when rolling is false. - Default is 86400 seconds (1 day). + Should be false when rolling is false. + Defaults to 86400 seconds (1 day). You can also use the AUTH0_SESSION_ROLLING_DURATION environment variable.

    +
    + +

    storeIDToken

    +
    storeIDToken: boolean
    + +
    +
    +

    Boolean value to store the ID token in the session. Storing it can make the session cookie too + large. + Defaults to false.

    +
    +
    +
    diff --git a/docs/interfaces/handlers_auth.handlers.html b/docs/interfaces/handlers_auth.handlers.html deleted file mode 100644 index 5522ea6f1..000000000 --- a/docs/interfaces/handlers_auth.handlers.html +++ /dev/null @@ -1,288 +0,0 @@ - - - - - - Handlers | @auth0/nextjs-auth0 - - - - - - -
    -
    -
    -
    - -
    -
    - Options -
    -
    - All -
      -
    • Public
    • -
    • Public/Protected
    • -
    • All
    • -
    -
    - - -
    -
    - Menu -
    -
    -
    -
    -
    -
    - -

    Interface Handlers

    -
    -
    -
    -
    -
    -
    -
    -
    -
    -

    If you want to add some custom behavior to the default auth handlers, you can pass in custom handlers for - login, logout, callback and profile eg

    -
    -
    // pages/api/auth/[...auth0].js
    -import { handleAuth, handleLogin } from '@auth0/nextjs-auth0';
    -import { errorReporter, logger } from '../../../utils';
    -
    -export default handleAuth({
    -  async login(req, res) {
    -    try {
    -       // Pass in custom params to your handler
    -      await handleLogin(req, res, { authorizationParams: { customParam: 'foo' } });
    -      // Add your own custom logging.
    -      logger('Redirecting to login');
    -    } catch (error) {
    -      // Add you own custom error logging.
    -      errorReporter(error);
    -      res.status(error.status || 500).end(error.message);
    -    }
    -  }
    -});
    -
    -
    -
    -
    -

    Hierarchy

    -
      -
    • - Handlers -
    • -
    -
    -
    -

    Index

    -
    -
    -
    -

    Properties

    - -
    -
    -
    -
    -
    -

    Properties

    -
    - -

    callback

    -
    callback: HandleCallback
    - -
    -
    - -

    login

    - - -
    -
    - -

    logout

    -
    logout: HandleLogout
    - -
    -
    - -

    profile

    -
    profile: HandleProfile
    - -
    -
    -
    - -
    -
    -
    -
    -

    Legend

    -
    -
      -
    • Function
    • -
    • Type alias
    • -
    • Type alias with type parameter
    • -
    -
      -
    • Interface
    • -
    • Property
    • -
    -
      -
    • Class
    • -
    -
    -
    -
    -
    - - - \ No newline at end of file diff --git a/docs/interfaces/handlers_callback.callbackoptions.html b/docs/interfaces/handlers_callback.callbackoptions.html index fa87aa51a..020bfdb32 100644 --- a/docs/interfaces/handlers_callback.callbackoptions.html +++ b/docs/interfaces/handlers_callback.callbackoptions.html @@ -71,6 +71,11 @@

    Interface CallbackOptions

    Options to customize the callback handler.

    +
    +
    see
    +

    HandleCallback

    +
    +
    @@ -105,7 +110,7 @@

    Optional afterCallbackafterCallback: AfterCallback

    @@ -115,12 +120,13 @@

    Optional authorizationPar
    authorizationParams: Partial<AuthorizationParameters>
    -

    This is useful for sending custom query parameters in the body of the code exchange request for use in rules.

    +

    This is useful for sending custom query parameters in the body of the code exchange request + for use in Actions/Rules.

    @@ -130,7 +136,7 @@

    Optional organization

    organization: string
    @@ -146,13 +152,13 @@

    Optional redirectUri

    redirectUri: string

    This is useful to specify in addition to BaseConfig.baseURL when your app runs on multiple domains, - it should match {@Link LoginOptions.authorizationParams.redirect_uri}.

    + it should match {@link LoginOptions.authorizationParams.redirect_uri}.

    @@ -165,16 +171,19 @@

    Optional redirectUri

    Exports
  • - config + client +
  • +
  • + client/use-user
  • - frontend + client/with-page-auth-required
  • - frontend/use-user + config
  • - frontend/with-page-auth-required + edge
  • handlers @@ -198,16 +207,19 @@

    Optional redirectUri

    helpers
  • - helpers/get-server-side-props-wrapper + helpers/testing
  • helpers/with-api-auth-required
  • +
  • + helpers/with-middleware-auth-required +
  • helpers/with-page-auth-required
  • - instance + index
  • session @@ -221,6 +233,9 @@

    Optional redirectUri

  • session/session
  • +
  • + session/update-session +
  • utils/errors
  • @@ -255,6 +270,12 @@

    Optional redirectUri

  • AfterCallback
  • +
  • + CallbackHandler +
  • +
  • + CallbackOptionsProvider +
  • HandleCallback
  • @@ -269,6 +290,7 @@

    Legend

    • Function
    • +
    • Function with type parameter
    • Type alias
    • Type alias with type parameter
    @@ -278,6 +300,10 @@

    Legend

    • Class
    • +
    • Class with type parameter
    • +
    +
      +
    • Enumeration
    diff --git a/docs/interfaces/handlers_login.authorizationparams.html b/docs/interfaces/handlers_login.authorizationparams.html index 55d5aa4f7..424a4473a 100644 --- a/docs/interfaces/handlers_login.authorizationparams.html +++ b/docs/interfaces/handlers_login.authorizationparams.html @@ -93,6 +93,8 @@

    Index

    Properties

    Properties

    +
    + +

    Optional connection

    +
    connection: string
    + +
    +
    +

    The name of an OAuth2/social connection. Use it to directly show that + identity provider's login page, skipping the Universal Login page itself. + By default no connection is specified, so the Universal Login page will be displayed.

    +
    +
    import { handleAuth, handleLogin } from '@auth0/nextjs-auth0';
    +
    +export default handleAuth({
    +  login: async (req, res) => {
    +    try {
    +      await handleLogin(req, res, {
    +        // Get the connection name from the Auth0 Dashboard
    +        authorizationParams: { connection: 'github' }
    +      });
    +    } catch (error) {
    +      console.error(error);
    +    }
    +  }
    +});
    +
    +
    +
    +
    + +

    Optional connection_scope

    +
    connection_scope: string
    + +
    +
    +

    Provider scopes for OAuth2/social connections, such as GitHub or Google.

    +
    +
    import { handleAuth, handleLogin } from '@auth0/nextjs-auth0';
    +
    +export default handleAuth({
    +  login: async (req, res) => {
    +    try {
    +      await handleLogin(req, res, {
    +        authorizationParams: {
    +          connection: 'github',
    +          connection_scope: 'public_repo read:user'
    +        }
    +      });
    +    } catch (error) {
    +      console.error(error);
    +    }
    +  }
    +});
    +
    +
    +

    Optional invitation

    invitation: string
    @@ -137,12 +203,12 @@

    Optional invitation

    } }); } catch (error) { - res.status(error.status || 500).end(error.message); + res.status(error.status || 500).end(); } } ;

    Your invite url can then take the format: - https://example.com/api/invite?invitation=invitation_id&organization=org_id

    + https://example.com/api/invite?invitation=invitation_id&organization=org_id.

    @@ -151,13 +217,13 @@

    Optional organization

    organization: string

    This is useful to specify instead of NextConfig.organization when your app has multiple - organizations, it should match CallbackOptions.organization.

    + organizations. It should match CallbackOptions.organization.

    @@ -168,7 +234,7 @@

    Optional response_mode

    Inherited from Partial.response_mode

    @@ -179,7 +245,7 @@

    Optional response_type

    Inherited from Partial.response_type

    @@ -190,7 +256,7 @@

    Optional scope

    @@ -200,15 +266,15 @@

    Optional screen_hint

    screen_hint: string

    Provides a hint to Auth0 as to what flow should be displayed. The default behavior is to show a - login page but you can override this by passing 'signup' to show the signup page instead. - This only affects the New Universal Login Experience.

    + login page but you can override this by passing 'signup' to show the signup page instead.

    +

    This only affects the New Universal Login Experience.

    @@ -220,16 +286,19 @@

    Optional screen_hint

    Exports
  • - config + client
  • - frontend + client/use-user
  • - frontend/use-user + client/with-page-auth-required
  • - frontend/with-page-auth-required + config +
  • +
  • + edge
  • handlers @@ -253,16 +322,19 @@

    Optional screen_hint

    helpers
  • - helpers/get-server-side-props-wrapper + helpers/testing
  • helpers/with-api-auth-required
  • +
  • + helpers/with-middleware-auth-required +
  • helpers/with-page-auth-required
  • - instance + index
  • session @@ -276,6 +348,9 @@

    Optional screen_hint

  • session/session
  • +
  • + session/update-session +
  • utils/errors
  • @@ -291,6 +366,12 @@

    Optional screen_hint

  • AuthorizationParams @@ -333,6 +420,7 @@

    Legend

    • Function
    • +
    • Function with type parameter
    • Type alias
    • Type alias with type parameter
    @@ -342,6 +430,10 @@

    Legend

    • Class
    • +
    • Class with type parameter
    • +
    +
      +
    • Enumeration
    diff --git a/docs/interfaces/handlers_login.loginoptions.html b/docs/interfaces/handlers_login.loginoptions.html index cc37ce1fc..c64620be9 100644 --- a/docs/interfaces/handlers_login.loginoptions.html +++ b/docs/interfaces/handlers_login.loginoptions.html @@ -69,8 +69,13 @@

    Interface LoginOptions

    -

    Custom options to pass to login.

    +

    Options to customize the login handler.

    +
    +
    see
    +

    HandleLogin

    +
    +
    @@ -104,12 +109,12 @@

    Optional authorizationPar
    authorizationParams: AuthorizationParams
    -

    Override the default authorizationParams

    +

    Override the default authorizationParams.

    @@ -119,7 +124,7 @@

    Optional getLoginSta
    getLoginState: GetLoginState
    @@ -134,12 +139,12 @@

    Optional returnTo

    returnTo: string
    -

    URL to return to after login, overrides the Default is BaseConfig.baseURL

    +

    URL to return to after login. Overrides the default in BaseConfig.baseURL.

    @@ -152,16 +157,19 @@

    Optional returnTo

    Exports

  • - config + client +
  • +
  • + client/use-user
  • - frontend + client/with-page-auth-required
  • - frontend/use-user + config
  • - frontend/with-page-auth-required + edge
  • handlers @@ -185,16 +193,19 @@

    Optional returnTo

    helpers
  • - helpers/get-server-side-props-wrapper + helpers/testing
  • helpers/with-api-auth-required
  • +
  • + helpers/with-middleware-auth-required +
  • helpers/with-page-auth-required
  • - instance + index
  • session @@ -208,6 +219,9 @@

    Optional returnTo

  • session/session
  • +
  • + session/update-session +
  • utils/errors
  • @@ -245,6 +259,12 @@

    Optional returnTo

  • HandleLogin
  • +
  • + LoginHandler +
  • +
  • + LoginOptionsProvider +
  • @@ -256,6 +276,7 @@

    Legend

    • Function
    • +
    • Function with type parameter
    • Type alias
    • Type alias with type parameter
    @@ -265,6 +286,10 @@

    Legend

    • Class
    • +
    • Class with type parameter
    • +
    +
      +
    • Enumeration
    diff --git a/docs/interfaces/handlers_logout.logoutoptions.html b/docs/interfaces/handlers_logout.logoutoptions.html index 84ace101a..3ece6f77d 100644 --- a/docs/interfaces/handlers_logout.logoutoptions.html +++ b/docs/interfaces/handlers_logout.logoutoptions.html @@ -69,8 +69,13 @@

    Interface LogoutOptions

    -

    Custom options to pass to logout.

    +

    Options to customize the logout handler.

    +
    +
    see
    +

    HandleLogout

    +
    +
    @@ -88,6 +93,7 @@

    Index

    Properties

    @@ -96,19 +102,42 @@

    Properties

    Properties

    +
    + +

    Optional logoutParams

    +
    logoutParams: {}
    + +
    +
    +

    Additional custom parameters to pass to the logout endpoint.

    +
    +
    +
    +

    Type declaration

    +
      +
    • +
      [key: string]: any
      +
    • +
    +
    +

    Optional returnTo

    returnTo: string
    -

    URL to returnTo after logout, overrides the - Default in {@link BaseConfig.routes.postLogoutRedirect routes.postLogoutRedirect}

    +

    URL to return to after logout. Overrides the default + in {@link BaseConfig.routes.postLogoutRedirect routes.postLogoutRedirect}.

    @@ -121,16 +150,19 @@

    Optional returnTo

    Exports
  • - config + client
  • - frontend + client/use-user
  • - frontend/use-user + client/with-page-auth-required
  • - frontend/with-page-auth-required + config +
  • +
  • + edge
  • handlers @@ -154,16 +186,19 @@

    Optional returnTo

    helpers
  • - helpers/get-server-side-props-wrapper + helpers/testing
  • helpers/with-api-auth-required
  • +
  • + helpers/with-middleware-auth-required +
  • helpers/with-page-auth-required
  • - instance + index
  • session @@ -177,6 +212,9 @@

    Optional returnTo

  • session/session
  • +
  • + session/update-session +
  • utils/errors
  • @@ -192,6 +230,9 @@

    Optional returnTo

  • LogoutOptions @@ -213,6 +260,7 @@

    Legend

    • Function
    • +
    • Function with type parameter
    • Type alias
    • Type alias with type parameter
    @@ -222,6 +270,10 @@

    Legend

    • Class
    • +
    • Class with type parameter
    • +
    +
      +
    • Enumeration
    diff --git a/docs/interfaces/instance.signinwithauth0.html b/docs/interfaces/index.auth0server.html similarity index 73% rename from docs/interfaces/instance.signinwithauth0.html rename to docs/interfaces/index.auth0server.html index 5056f5e5c..379953dac 100644 --- a/docs/interfaces/instance.signinwithauth0.html +++ b/docs/interfaces/index.auth0server.html @@ -3,7 +3,7 @@ - SignInWithAuth0 | @auth0/nextjs-auth0 + Auth0Server | @auth0/nextjs-auth0 @@ -53,13 +53,13 @@ @auth0/nextjs-auth0
  • - instance + index
  • - SignInWithAuth0 + Auth0Server
  • -

    Interface SignInWithAuth0

    +

    Interface Auth0Server

    @@ -71,15 +71,15 @@

    Interface SignInWithAuth0

    The SDK server instance.

    -

    This is created for you when you use the named exports, or you can create your own using InitAuth0

    -

    See {@link Config} fro more info.

    +

    This is created for you when you use the named exports, or you can create your own using InitAuth0.

    +

    See ConfigParameters for more info.

    Hierarchy

    • - SignInWithAuth0 + Auth0Server
    @@ -90,16 +90,16 @@

    Index

    Properties

    @@ -113,28 +113,12 @@

    getAccessToken

    getAccessToken: GetAccessToken
    -

    Access Token getter

    -
    -
    - -
    - -

    getServerSidePropsWrapper

    -
    getServerSidePropsWrapper: GetServerSidePropsWrapper<any, ParsedUrlQuery>
    - -
    -
    -

    Wrap getServerSideProps to avoid accessing res after getServerSideProps resolves, - see GetServerSidePropsWrapper

    +

    Access token getter.

    @@ -144,12 +128,12 @@

    getSession

    getSession: GetSession
    -

    Session getter

    +

    Session getter.

    @@ -159,12 +143,12 @@

    handleAuth

    handleAuth: HandleAuth
    -

    Create the main handlers for your api routes

    +

    Create the main handlers for your api routes.

    @@ -174,7 +158,7 @@

    handleCallback

    handleCallback: HandleCallback
    @@ -189,7 +173,7 @@

    handleLogin

    handleLogin: HandleLogin
    @@ -204,7 +188,7 @@

    handleLogout

    handleLogout: HandleLogout
    @@ -219,7 +203,7 @@

    handleProfile

    handleProfile: HandleProfile
    @@ -228,18 +212,33 @@

    handleProfile

    +
    + +

    updateSession

    +
    updateSession: UpdateSession
    + +
    +
    +

    Append properties to the user.

    +
    +
    +

    withApiAuthRequired

    withApiAuthRequired: WithApiAuthRequired
    -

    Helper that adds auth to an API Route

    +

    Helper that adds auth to an API route.

    @@ -249,12 +248,12 @@

    withPageAuthRequired

    withPageAuthRequired: WithPageAuthRequired
    -

    Helper that adds auth to a Page Route

    +

    Helper that adds auth to a Page route.

    @@ -267,16 +266,19 @@

    withPageAuthRequired

    Exports
  • - config + client +
  • +
  • + client/use-user
  • - frontend + client/with-page-auth-required
  • - frontend/use-user + config
  • - frontend/with-page-auth-required + edge
  • handlers @@ -300,16 +302,19 @@

    withPageAuthRequired

    helpers
  • - helpers/get-server-side-props-wrapper + helpers/testing
  • helpers/with-api-auth-required
  • +
  • + helpers/with-middleware-auth-required +
  • helpers/with-page-auth-required
  • - instance + index
  • session @@ -323,6 +328,9 @@

    withPageAuthRequired

  • session/session
  • +
  • + session/update-session +
  • utils/errors
  • @@ -336,45 +344,42 @@

    withPageAuthRequired

    @@ -386,6 +391,7 @@

    Legend

    • Function
    • +
    • Function with type parameter
    • Type alias
    • Type alias with type parameter
    @@ -395,6 +401,10 @@

    Legend

    • Class
    • +
    • Class with type parameter
    • +
    +
      +
    • Enumeration
    diff --git a/docs/interfaces/session_get_access_token.accesstokenrequest.html b/docs/interfaces/session_get_access_token.accesstokenrequest.html index 6f7ecedfd..0ae5b3d5c 100644 --- a/docs/interfaces/session_get_access_token.accesstokenrequest.html +++ b/docs/interfaces/session_get_access_token.accesstokenrequest.html @@ -69,7 +69,7 @@

    Interface AccessTokenRequest

    -

    Custom options to get an Access Token.

    +

    Custom options to get an access token.

    @@ -105,20 +105,22 @@

    Optional afterRefresh

    afterRefresh: AfterRefresh
    -

    When the Access Token Request refreshes the tokens using the Refresh Grant the Session is updated with new tokens. +

    When the access token request refreshes the tokens using the refresh grant the session is updated with new tokens. Use this to modify the session after it is refreshed. - Usually used to keep updates in sync with the AfterCallback hook. - See also the AfterRefetch hook

    + Usually used to keep updates in sync with the AfterCallback hook.

    - -

    Modify the session after refresh

    -
    -
    // pages/api/my-handler.js
    +						
    +
    see
    +

    also the AfterRefetch hook.

    +
    +
    example
    +

    Modify the session after refresh

    +
    // pages/api/my-handler.js
     import { getAccessToken } from '@auth0/nextjs-auth0';
     
     const afterRefresh = (req, res, session) => {
    @@ -134,6 +136,8 @@ 

    Modify the session after refresh

    }); };
    +
    +
    @@ -142,7 +146,7 @@

    Optional authorizationPar
    authorizationParams: Partial<AuthorizationParameters>
    @@ -157,14 +161,16 @@

    Optional refresh

    refresh: boolean
    -

    If set to true, a new Access Token will be requested with the Refresh Token grant, regardless of whether - the Access Token has expired or not.

    +

    If set to true, a new access token will be requested with the refresh token grant, regardless of whether + the access token has expired or not.

    +

    IMPORTANT You need to request the offline_access scope on login to get a refresh token + from Auth0.

    @@ -173,12 +179,12 @@

    Optional scopes

    scopes: string[]
    -

    A list of desired scopes for your Access Token.

    +

    A list of desired scopes for your access token.

    @@ -191,16 +197,19 @@

    Optional scopes

    Exports
  • - config + client
  • - frontend + client/use-user
  • - frontend/use-user + client/with-page-auth-required
  • - frontend/with-page-auth-required + config +
  • +
  • + edge
  • handlers @@ -224,16 +233,19 @@

    Optional scopes

    helpers
  • - helpers/get-server-side-props-wrapper + helpers/testing
  • helpers/with-api-auth-required
  • +
  • + helpers/with-middleware-auth-required +
  • helpers/with-page-auth-required
  • - instance + index
  • session @@ -247,6 +259,9 @@

    Optional scopes

  • session/session
  • +
  • + session/update-session +
  • utils/errors
  • @@ -298,6 +313,7 @@

    Legend

    • Function
    • +
    • Function with type parameter
    • Type alias
    • Type alias with type parameter
    @@ -307,6 +323,10 @@

    Legend

    • Class
    • +
    • Class with type parameter
    • +
    +
      +
    • Enumeration
    diff --git a/docs/interfaces/session_get_access_token.getaccesstokenresult.html b/docs/interfaces/session_get_access_token.getaccesstokenresult.html index a2cc753ef..753289191 100644 --- a/docs/interfaces/session_get_access_token.getaccesstokenresult.html +++ b/docs/interfaces/session_get_access_token.getaccesstokenresult.html @@ -69,7 +69,7 @@

    Interface GetAccessTokenResult

    -

    Response from requesting an Access Token.

    +

    Response from requesting an access token.

    @@ -102,7 +102,7 @@

    Optional accessToken

    accessToken: string
    @@ -120,16 +120,19 @@

    Optional accessToken

    Exports
  • - config + client
  • - frontend + client/use-user
  • - frontend/use-user + client/with-page-auth-required
  • - frontend/with-page-auth-required + config +
  • +
  • + edge
  • handlers @@ -153,16 +156,19 @@

    Optional accessToken

    helpers
  • - helpers/get-server-side-props-wrapper + helpers/testing
  • helpers/with-api-auth-required
  • +
  • + helpers/with-middleware-auth-required +
  • helpers/with-page-auth-required
  • - instance + index
  • session @@ -176,6 +182,9 @@

    Optional accessToken

  • session/session
  • +
  • + session/update-session +
  • utils/errors
  • @@ -218,6 +227,7 @@

    Legend

    • Function
    • +
    • Function with type parameter
    • Type alias
    • Type alias with type parameter
    @@ -227,6 +237,10 @@

    Legend

    • Class
    • +
    • Class with type parameter
    • +
    +
      +
    • Enumeration
    diff --git a/docs/interfaces/session_session.claims.html b/docs/interfaces/session_session.claims.html index ee7b97726..f8142f792 100644 --- a/docs/interfaces/session_session.claims.html +++ b/docs/interfaces/session_session.claims.html @@ -98,16 +98,19 @@

    Indexable

    Exports
  • - config + client +
  • +
  • + client/use-user
  • - frontend + client/with-page-auth-required
  • - frontend/use-user + config
  • - frontend/with-page-auth-required + edge
  • handlers @@ -131,16 +134,19 @@

    Indexable

    helpers
  • - helpers/get-server-side-props-wrapper + helpers/testing
  • helpers/with-api-auth-required
  • +
  • + helpers/with-middleware-auth-required +
  • helpers/with-page-auth-required
  • - instance + index
  • session @@ -154,6 +160,9 @@

    Indexable

  • session/session
  • +
  • + session/update-session +
  • utils/errors
  • @@ -185,14 +194,19 @@

    Legend

    • Function
    • +
    • Function with type parameter
    • Type alias
    • Type alias with type parameter
      -
    • Interface
    • +
    • Class
    • +
    • Class with type parameter
      -
    • Class
    • +
    • Enumeration
    • +
    +
      +
    • Interface
    diff --git a/docs/modules/client.html b/docs/modules/client.html new file mode 100644 index 000000000..08c2bd2f6 --- /dev/null +++ b/docs/modules/client.html @@ -0,0 +1,258 @@ + + + + + + client | @auth0/nextjs-auth0 + + + + + + +
    +
    +
    +
    + +
    +
    + Options +
    +
    + All +
      +
    • Public
    • +
    • Public/Protected
    • +
    • All
    • +
    +
    + + +
    +
    + Menu +
    +
    +
    +
    +
    +
    + +

    Module client

    +
    +
    +
    +
    +
    +
    +
    +

    Index

    +
    + +
    +
    +
    +

    References

    +
    + +

    RequestError

    + Re-exports RequestError +
    +
    + +

    UserProfile

    + Re-exports UserProfile +
    +
    + +

    UserProvider

    + Renames and exports default +
    +
    + +

    UserProviderProps

    + Re-exports UserProviderProps +
    +
    + +

    WithPageAuthRequired

    + Re-exports WithPageAuthRequired +
    +
    + +

    WithPageAuthRequiredOptions

    + Re-exports WithPageAuthRequiredOptions +
    +
    + +

    useUser

    + Re-exports useUser +
    +
    +
    + +
    +
    +
    +
    +

    Legend

    +
    +
      +
    • Function
    • +
    • Function with type parameter
    • +
    • Type alias
    • +
    • Type alias with type parameter
    • +
    +
      +
    • Class
    • +
    • Class with type parameter
    • +
    +
      +
    • Enumeration
    • +
    +
      +
    • Interface
    • +
    +
    +
    +
    +
    + + + \ No newline at end of file diff --git a/docs/modules/frontend_use_user.html b/docs/modules/client_use_user.html similarity index 66% rename from docs/modules/frontend_use_user.html rename to docs/modules/client_use_user.html index 55847df44..395aa520e 100644 --- a/docs/modules/frontend_use_user.html +++ b/docs/modules/client_use_user.html @@ -3,7 +3,7 @@ - frontend/use-user | @auth0/nextjs-auth0 + client/use-user | @auth0/nextjs-auth0 @@ -53,10 +53,10 @@ @auth0/nextjs-auth0
  • - frontend/use-user + client/use-user
  • -

    Module frontend/use-user

    +

    Module client/use-user

    @@ -70,28 +70,33 @@

    Index

    Client Classes

    Client Interfaces

    Client Type aliases

    Properties

    +
    +
    +

    Client Functions

    +
    @@ -99,62 +104,18 @@

    Properties

    Client Type aliases

    -
    - -

    UseUser

    -
    UseUser: () => UserContext
    - -
    -
    -

    The useUser hook, which will get you the UserProfile object from the server-side session by requesting it - from the HandleProfile API Route handler.

    -
    -
    // pages/profile.js
    -import Link from 'next/link';
    -import { useUser } from '@auth0/nextjs-auth0';
    -
    -export default function Profile() {
    -  const { user, error, isLoading } = useUser();
    -
    -  if (isLoading) return <div>Loading...</div>;
    -  if (error) return <div>{error.message}</div>;
    -  if (!user) return <Link href="/api/auth/login"><a>Login</a></Link>;
    -  return <div>Hello {user.name}, <Link href="/api/auth/logout"><a>Logout</a></Link></div>;
    -}
    -
    -
    -
    -

    Type declaration

    -
      -
    • -
        -
      • (): UserContext
      • -
      -
        -
      • -

        Returns UserContext

        -
      • -
      -
    • -
    -
    -

    UserContext

    -
    UserContext: { checkSession: () => Promise<void>; error?: Error; isLoading: boolean; user?: UserProfile }
    +
    UserContext: { checkSession: () => Promise<void>; error?: Error; isLoading: boolean; user?: UserProfile }
    -

    The user context returned from the {@link useUser} hook.

    +

    The user context returned from the useUser hook.

    @@ -182,7 +143,7 @@
    Optional error: boolean
  • -
    Optional user?: UserProfile
    +
    Optional user?: UserProfile
  • @@ -190,15 +151,15 @@
    Optional user

    UserProvider

    -
    UserProvider: (props: UserProviderProps) => ReactElement<UserContext>
    +
    UserProvider: (props: UserProviderProps) => ReactElement<UserContext>
    -

    To use the {@link useUser} hook. You must wrap your application in a <UserProvider> component.

    +

    To use the useUser hook, you must wrap your application in a <UserProvider> component.

    @@ -206,14 +167,14 @@

    Type declaration

      • Parameters

        Returns ReactElement<UserContext>

        @@ -226,26 +187,27 @@

        Returns ReactElem

        UserProviderProps

        -
        UserProviderProps: React.PropsWithChildren<{ fetcher?: UserFetcher; profileUrl?: string; user?: UserProfile } & ConfigContext>
        +
        UserProviderProps: React.PropsWithChildren<{ fetcher?: UserFetcher; profileUrl?: string; user?: UserProfile } & ConfigContext>
        -

        Configure the UserProvider component.

        +

        Configure the UserProvider component.

        -

        If you have any server-side rendered pages (eg. using getServerSideProps), you should get the user from the server - side session and pass it to the <UserProvider> component via pageProps - this will refill the {@link useUser} - hook with the UserProfile object. eg

        +

        If you have any server-side rendered pages (using getServerSideProps), you should get the + user from the server-side session and pass it to the <UserProvider> component via the user + prop. This will prefill the useUser hook with the UserProfile object. + For example:

        // pages/_app.js
         import React from 'react';
        -import { UserProvider } from '@auth0/nextjs-auth0';
        +import { UserProvider } from '@auth0/nextjs-auth0/client';
         
         export default function App({ Component, pageProps }) {
        -  // If you've used `withPageAuthRequired`, pageProps.user can pre-populate the hook
        -  // if you haven't used `withPageAuthRequired`, pageProps.user is undefined so the hook
        +  // If you've used `withPageAuthRequired`, `pageProps.user` can prefill the hook
        +  // if you haven't used `withPageAuthRequired`, `pageProps.user` is undefined so the hook
           // fetches the user from the API route
           const { user } = pageProps;
         
        @@ -256,8 +218,11 @@ 

        UserProviderProps

        ); }
        -

        If you have used a custom url for your HandleProfile API Route handler (the default is /api/auth/me) then - you should specify it here in the profileUrl option.

        +

        In client-side rendered pages, the useUser hook uses a {@link UserFetcher} to fetch the + user from the profile API route. If needed, you can specify a custom fetcher here in the + fetcher option.

        +

        IMPORTANT If you have used a custom url for your HandleProfile API route handler + (the default is /api/auth/me) then you need to specify it here in the profileUrl option.

    @@ -266,7 +231,7 @@

    Properties

    default

    -
    default: (__namedParameters: PropsWithChildren<{ fetcher?: UserFetcher; profileUrl?: string; user?: UserProfile } & ConfigContext>) => ReactElement<UserContext, string | ((props: any) => null | ReactElement<any, any>) | (new (props: any) => Component<any, any, any>)>
    +
    default: (__namedParameters: PropsWithChildren<{ fetcher?: UserFetcher; profileUrl?: string; user?: UserProfile } & ConfigContext>) => ReactElement<UserContext, string | ((props: any) => null | ReactElement<any, any>) | (new (props: any) => Component<any, any, any>)>
    @@ -274,14 +239,14 @@

    Type declaration

      • -
      • (__namedParameters: PropsWithChildren<{ fetcher?: UserFetcher; profileUrl?: string; user?: UserProfile } & ConfigContext>): ReactElement<UserContext, string | ((props: any) => null | ReactElement<any, any>) | (new (props: any) => Component<any, any, any>)>
      • +
      • (__namedParameters: PropsWithChildren<{ fetcher?: UserFetcher; profileUrl?: string; user?: UserProfile } & ConfigContext>): ReactElement<UserContext, string | ((props: any) => null | ReactElement<any, any>) | (new (props: any) => Component<any, any, any>)>
      • Parameters

        • -
          __namedParameters: PropsWithChildren<{ fetcher?: UserFetcher; profileUrl?: string; user?: UserProfile } & ConfigContext>
          +
          __namedParameters: PropsWithChildren<{ fetcher?: UserFetcher; profileUrl?: string; user?: UserProfile } & ConfigContext>

        Returns ReactElement<UserContext, string | ((props: any) => null | ReactElement<any, any>) | (new (props: any) => Component<any, any, any>)>

        @@ -292,6 +257,45 @@

        Returns ReactElem

    +
    +

    Client Functions

    +
    + +

    Const useUser

    +
      +
    • useUser(): UserContext
    • +
    +
      +
    • + +
      +
      +

      The useUser hook, which will get you the UserProfile object from the server-side session by fetching it + from the HandleProfile API route.

      +
      +
      // pages/profile.js
      +import Link from 'next/link';
      +import { useUser } from '@auth0/nextjs-auth0/client';
      +
      +export default function Profile() {
      +  const { user, error, isLoading } = useUser();
      +
      +  if (isLoading) return <div>Loading...</div>;
      +  if (error) return <div>{error.message}</div>;
      +  if (!user) return <Link href="/api/auth/login"><a>Login</a></Link>;
      +  return <div>Hello {user.name}, <Link href="/api/auth/logout"><a>Logout</a></Link></div>;
      +}
      +
      +
      +

      Returns UserContext

      +
    • +
    +
    +
    diff --git a/docs/modules/frontend_with_page_auth_required.html b/docs/modules/client_with_page_auth_required.html similarity index 69% rename from docs/modules/frontend_with_page_auth_required.html rename to docs/modules/client_with_page_auth_required.html index 461a89594..5a97bb7ab 100644 --- a/docs/modules/frontend_with_page_auth_required.html +++ b/docs/modules/client_with_page_auth_required.html @@ -3,7 +3,7 @@ - frontend/with-page-auth-required | @auth0/nextjs-auth0 + client/with-page-auth-required | @auth0/nextjs-auth0 @@ -53,10 +53,10 @@ @auth0/nextjs-auth0
  • - frontend/with-page-auth-required + client/with-page-auth-required
  • -

    Module frontend/with-page-auth-required

    +

    Module client/with-page-auth-required

    @@ -70,17 +70,17 @@

    Index

    Client Interfaces

    Other Interfaces

    Client Type aliases

    @@ -91,10 +91,10 @@

    Client Type aliases

    WithPageAuthRequired

    -
    WithPageAuthRequired: <P>(Component: ComponentType<P & UserProps>, options?: WithPageAuthRequiredOptions) => React.FC<P>
    +
    WithPageAuthRequired: <P>(Component: ComponentType<P & UserProps>, options?: WithPageAuthRequiredOptions) => React.FC<P>
    @@ -102,7 +102,7 @@

    WithPageAuthRequired

    const MyProtectedPage = withPageAuthRequired(MyPage);
     
    -

    When you wrap your pages in this Higher Order Component and an anonymous user visits your page +

    When you wrap your pages in this higher order component and an anonymous user visits your page, they will be redirected to the login page and then returned to the page they were redirected from (after login).

    @@ -110,7 +110,7 @@

    Type declaration

    diff --git a/docs/modules/config.html b/docs/modules/config.html index 07f506a76..148ef3792 100644 --- a/docs/modules/config.html +++ b/docs/modules/config.html @@ -97,7 +97,7 @@

    ConfigParameters

    ConfigParameters: DeepPartial<BaseConfig & NextConfig>
    @@ -107,59 +107,59 @@

    Configuration properties.

    The Server part of the SDK can be configured in 2 ways.

    - -

    1. Environmental Variables

    +
    +

    1. Environment Variables

    The simplest way to use the SDK is to use the named exports (HandleAuth, HandleLogin, - HandleLogout, HandleCallback, HandleProfile, GetSession, GetAccessToken, - WithApiAuthRequired and WithPageAuthRequired), eg:

    + HandleLogout, HandleCallback, HandleProfile, GetSession, GetAccessToken, + WithApiAuthRequired, and WithPageAuthRequired).

    // pages/api/auth/[...auth0].js
     import { handleAuth } from '@auth0/nextjs-auth0';
     
     return handleAuth();
     

    When you use these named exports, an instance of the SDK is created for you which you can configure using - environmental variables:

    + environment variables:

    Required

    Optional

    -

    2. Create your own instance using InitAuth0

    +

    2. Create your own instance using InitAuth0

    If you don't want to configure the SDK with environment variables or you want more fine grained control over the instance, you can create an instance yourself and use the handlers and helpers from that.

    @@ -175,10 +175,10 @@

    2. Create your own instance using InitAuth return auth0.handleAuth(); -

    Note If you use InitAuth0, you should not use the other named exports as they will use a different +

    IMPORTANT If you use InitAuth0, you should not use the other named exports as they will use a different instance of the SDK. Also note - this is for the server side part of the SDK - you will always use named exports for - the front end components: UserProvider, UseUser and the - front end version of WithPageAuthRequired

    + the front end components: UserProvider, {@Link UseUser} and the + front end version of WithPageAuthRequired

    @@ -189,17 +189,20 @@

    2. Create your own instance using InitAuth
  • Exports
  • -
  • - config +
  • + client
  • - frontend + client/use-user
  • - frontend/use-user + client/with-page-auth-required +
  • +
  • + config
  • - frontend/with-page-auth-required + edge
  • handlers @@ -223,16 +226,19 @@

    2. Create your own instance using InitAuth helpers

  • - helpers/get-server-side-props-wrapper + helpers/testing
  • helpers/with-api-auth-required
  • +
  • + helpers/with-middleware-auth-required +
  • helpers/with-page-auth-required
  • - instance + index
  • session @@ -246,6 +252,9 @@

    2. Create your own instance using InitAuth
  • session/session
  • +
  • + session/update-session +
  • utils/errors
  • @@ -285,14 +294,19 @@

    Legend

    • Function
    • +
    • Function with type parameter
    • Type alias
    • Type alias with type parameter
      -
    • Interface
    • +
    • Class
    • +
    • Class with type parameter
      -
    • Class
    • +
    • Enumeration
    • +
    +
      +
    • Interface
    diff --git a/docs/modules/edge.html b/docs/modules/edge.html new file mode 100644 index 000000000..d54691efa --- /dev/null +++ b/docs/modules/edge.html @@ -0,0 +1,402 @@ + + + + + + edge | @auth0/nextjs-auth0 + + + + + + +
    +
    +
    +
    + +
    +
    + Options +
    +
    + All +
      +
    • Public
    • +
    • Public/Protected
    • +
    • All
    • +
    +
    + + +
    +
    + Menu +
    +
    +
    +
    +
    +
    + +

    Module edge

    +
    +
    +
    +
    +
    +
    +
    +

    Index

    +
    +
    +
    +

    References

    + +
    +
    +

    Type aliases

    + +
    +
    +

    Functions

    + +
    +
    +
    +
    +
    +

    References

    +
    + +

    WithMiddlewareAuthRequired

    + Re-exports WithMiddlewareAuthRequired +
    +
    +
    +

    Type aliases

    +
    + +

    Auth0Edge

    +
    Auth0Edge: { getSession: GetSession; withMiddlewareAuthRequired: WithMiddlewareAuthRequired }
    + +
    +

    Type declaration

    + +
    +
    +
    + +

    GetSession

    +
    GetSession: (req: NextRequest, res: NextResponse) => Promise<default | null | undefined>
    + +
    +

    Type declaration

    +
      +
    • +
        +
      • (req: NextRequest, res: NextResponse): Promise<default | null | undefined>
      • +
      +
        +
      • +

        Parameters

        +
          +
        • +
          req: NextRequest
          +
        • +
        • +
          res: NextResponse
          +
        • +
        +

        Returns Promise<default | null | undefined>

        +
      • +
      +
    • +
    +
    +
    +
    + +

    InitAuth0

    +
    InitAuth0: (params?: ConfigParameters) => Auth0Edge
    + +
    +

    Type declaration

    + +
    +
    +
    +
    +

    Functions

    +
    + +

    Const getSession

    +
      +
    • getSession(req: NextRequest, res: NextResponse): Promise<undefined | null | default>
    • +
    +
      +
    • + +

      Parameters

      +
        +
      • +
        req: NextRequest
        +
      • +
      • +
        res: NextResponse
        +
      • +
      +

      Returns Promise<undefined | null | default>

      +
    • +
    +
    +
    + +

    Const initAuth0

    + + +
    +
    + +

    Const withMiddlewareAuthRequired

    +
      +
    • withMiddlewareAuthRequired(middleware?: NextMiddleware): NextMiddleware
    • +
    +
      +
    • + +

      Parameters

      +
        +
      • +
        Optional middleware: NextMiddleware
        +
      • +
      +

      Returns NextMiddleware

      +
    • +
    +
    +
    +
    + +
    +
    +
    +
    +

    Legend

    +
    +
      +
    • Function
    • +
    • Function with type parameter
    • +
    • Type alias
    • +
    • Type alias with type parameter
    • +
    +
      +
    • Class
    • +
    • Class with type parameter
    • +
    +
      +
    • Enumeration
    • +
    +
      +
    • Interface
    • +
    +
    +
    +
    +
    + + + \ No newline at end of file diff --git a/docs/modules/frontend.html b/docs/modules/frontend.html deleted file mode 100644 index c272f1bf9..000000000 --- a/docs/modules/frontend.html +++ /dev/null @@ -1,326 +0,0 @@ - - - - - - frontend | @auth0/nextjs-auth0 - - - - - - -
    -
    -
    -
    - -
    -
    - Options -
    -
    - All -
      -
    • Public
    • -
    • Public/Protected
    • -
    • All
    • -
    -
    - - -
    -
    - Menu -
    -
    -
    -
    -
    -
    - -

    Module frontend

    -
    -
    -
    -
    -
    -
    -
    -

    Index

    -
    -
    -
    -

    References

    - -
    -
    -

    Type aliases

    - -
    -
    -

    Properties

    - -
    -
    -

    Functions

    - -
    -
    -
    -
    -
    -

    References

    -
    - -

    RequestError

    - Re-exports RequestError -
    -
    - -

    UserProfile

    - Re-exports UserProfile -
    -
    - -

    UserProvider

    - Renames and exports default -
    -
    - -

    UserProviderProps

    - Re-exports UserProviderProps -
    -
    - -

    WithPageAuthRequired

    - Re-exports WithPageAuthRequired -
    -
    - -

    WithPageAuthRequiredOptions

    - Re-exports WithPageAuthRequiredOptions -
    -
    -
    -

    Type aliases

    -
    - -

    ConfigProviderProps

    -
    ConfigProviderProps: React.PropsWithChildren<ConfigContext>
    - -
    -
    -
    -

    Properties

    -
    - -

    ConfigProvider

    -
    ConfigProvider: (__namedParameters: PropsWithChildren<ConfigContext>) => ReactElement<ConfigContext, string | ((props: any) => null | ReactElement<any, any>) | (new (props: any) => Component<any, any, any>)>
    - -
    -

    Type declaration

    -
      -
    • -
        -
      • (__namedParameters: PropsWithChildren<ConfigContext>): ReactElement<ConfigContext, string | ((props: any) => null | ReactElement<any, any>) | (new (props: any) => Component<any, any, any>)>
      • -
      -
        -
      • -

        Parameters

        -
          -
        • -
          __namedParameters: PropsWithChildren<ConfigContext>
          -
        • -
        -

        Returns ReactElement<ConfigContext, string | ((props: any) => null | ReactElement<any, any>) | (new (props: any) => Component<any, any, any>)>

        -
      • -
      -
    • -
    -
    -
    -
    -
    -

    Functions

    -
    - -

    Const useConfig

    -
      -
    • useConfig(): ConfigContext
    • -
    - -
    -
    -
    - -
    -
    -
    -
    -

    Legend

    -
    -
      -
    • Function
    • -
    • Type alias
    • -
    • Type alias with type parameter
    • -
    -
      -
    • Interface
    • -
    -
      -
    • Class
    • -
    -
    -
    -
    -
    - - - \ No newline at end of file diff --git a/docs/modules/handlers.html b/docs/modules/handlers.html index 544c0e53e..f081c8342 100644 --- a/docs/modules/handlers.html +++ b/docs/modules/handlers.html @@ -82,6 +82,7 @@

    References

  • Handlers
  • LoginOptions
  • LogoutOptions
  • +
  • OnError
  • ProfileOptions
  • @@ -138,7 +139,7 @@

    HandleProfile

    Handlers

    - Re-exports Handlers + Re-exports Handlers
    @@ -150,6 +151,11 @@

    LoginOptions

    LogoutOptions

    Re-exports LogoutOptions
    +
    + +

    OnError

    + Re-exports OnError +

    ProfileOptions

    @@ -164,16 +170,19 @@

    ProfileOptions

    Exports
  • - config + client
  • - frontend + client/use-user
  • - frontend/use-user + client/with-page-auth-required
  • - frontend/with-page-auth-required + config +
  • +
  • + edge
  • handlers @@ -197,16 +206,19 @@

    ProfileOptions

    helpers
  • - helpers/get-server-side-props-wrapper + helpers/testing
  • helpers/with-api-auth-required
  • +
  • + helpers/with-middleware-auth-required +
  • helpers/with-page-auth-required
  • - instance + index
  • session @@ -220,6 +232,9 @@

    ProfileOptions

  • session/session
  • +
  • + session/update-session +
  • utils/errors
  • @@ -266,6 +281,9 @@

    ProfileOptions

  • LogoutOptions
  • +
  • + OnError +
  • ProfileOptions
  • @@ -280,14 +298,19 @@

    Legend

    • Function
    • +
    • Function with type parameter
    • Type alias
    • Type alias with type parameter
      -
    • Interface
    • +
    • Class
    • +
    • Class with type parameter
      -
    • Class
    • +
    • Enumeration
    • +
    +
      +
    • Interface
    diff --git a/docs/modules/handlers_auth.html b/docs/modules/handlers_auth.html index 825181d6f..32bb00e36 100644 --- a/docs/modules/handlers_auth.html +++ b/docs/modules/handlers_auth.html @@ -67,16 +67,12 @@

    Module handlers/auth

    Index

    -
    -

    Server Interfaces

    - -

    Server Type aliases

    @@ -87,28 +83,30 @@

    Server Type aliases

    HandleAuth

    -
    HandleAuth: (userHandlers?: Partial<Handlers>) => NextApiHandler
    +
    HandleAuth: (userHandlers?: Handlers) => NextApiHandler

    The main way to use the server SDK.

    -

    Simply set the environment variables per {@link Config} then create the file pages/api/auth/[...auth0].js, eg

    +

    Simply set the environment variables per ConfigParameters then create the file + pages/api/auth/[...auth0].js. For example:

    // pages/api/auth/[...auth0].js
     import { handleAuth } from '@auth0/nextjs-auth0';
     
     export default handleAuth();
     
    -

    This will create 4 handlers for the following urls:

    +

    This will create 5 handlers for the following urls:

      -
    • /api/auth/login: log the user in to your app by redirecting them to your Identity Provider.
    • -
    • /api/auth/callback: The page that your Identity Provider will redirect the user back to on login.
    • +
    • /api/auth/login: log the user in to your app by redirecting them to your identity provider.
    • +
    • /api/auth/callback: The page that your identity provider will redirect the user back to on login.
    • /api/auth/logout: log the user out of your app.
    • -
    • /api/auth/me: View the user profile JSON (used by the UseUser hook)
    • +
    • /api/auth/me: View the user profile JSON (used by the {@link UseUser} hook).
    • +
    • /api/auth/unauthorized: Returns a 401 for use by WithMiddlewareAuthRequired when protecting API routes.
    @@ -116,14 +114,14 @@

    Type declaration

      • -
      • (userHandlers?: Partial<Handlers>): NextApiHandler
      • +
      • (userHandlers?: Handlers): NextApiHandler
      • Parameters

        Returns NextApiHandler

        @@ -133,6 +131,116 @@

        Returns NextApiHa

    +
    + +

    Handlers

    +
    Handlers: ApiHandlers | ErrorHandlers
    + +
    +
    +

    If you want to add some custom behavior to the default auth handlers, you can pass in custom handlers for + login, logout, callback, and profile. For example:

    +
    +
    // pages/api/auth/[...auth0].js
    +import { handleAuth, handleLogin } from '@auth0/nextjs-auth0';
    +import { errorReporter, logger } from '../../../utils';
    +
    +export default handleAuth({
    +  async login(req, res) {
    +    try {
    +       // Pass in custom params to your handler
    +      await handleLogin(req, res, { authorizationParams: { customParam: 'foo' } });
    +      // Add your own custom logging.
    +      logger('Redirecting to login');
    +    } catch (error) {
    +      // Add you own custom error logging.
    +      errorReporter(error);
    +      res.status(error.status || 500).end();
    +    }
    +  }
    +});
    +
    +

    Alternatively, you can customize the default handlers without overriding them. For example:

    +
    // pages/api/auth/[...auth0].js
    +import { handleAuth, handleLogin } from '@auth0/nextjs-auth0';
    +
    +export default handleAuth({
    +  login: handleLogin({
    +    authorizationParams: { customParam: 'foo' } // Pass in custom params
    +  })
    +});
    +
    +

    You can also create new handlers by customizing the default ones. For example:

    +
    // pages/api/auth/[...auth0].js
    +import { handleAuth, handleLogin } from '@auth0/nextjs-auth0';
    +
    +export default handleAuth({
    +  signup: handleLogin({
    +    authorizationParams: { screen_hint: 'signup' }
    +  })
    +});
    +
    +
    +
    +
    + +

    OnError

    +
    OnError: (req: NextApiRequest, res: NextApiResponse, error: HandlerError) => Promise<void> | void
    + +
    +
    +

    Error handler for the default auth routes.

    +
    +

    Use this to define an error handler for all the default routes in a single place. For example:

    +
    export default handleAuth({
    +  onError(req, res, error) {
    +    errorLogger(error);
    +    // You can finish the response yourself if you want to customize
    +    // the status code or redirect the user
    +    // res.writeHead(302, {
    +    //     Location: '/custom-error-page'
    +    // });
    +    // res.end();
    +  }
    +});
    +
    +
    +
    +

    Type declaration

    +
      +
    • +
        +
      • (req: NextApiRequest, res: NextApiResponse, error: HandlerError): Promise<void> | void
      • +
      +
        +
      • +

        Parameters

        +
          +
        • +
          req: NextApiRequest
          +
        • +
        • +
          res: NextApiResponse
          +
        • +
        • +
          error: HandlerError
          +
        • +
        +

        Returns Promise<void> | void

        +
      • +
      +
    • +
    +
    +
    @@ -225,14 +345,19 @@

    Legend

    • Function
    • +
    • Function with type parameter
    • Type alias
    • Type alias with type parameter
      -
    • Interface
    • +
    • Class
    • +
    • Class with type parameter
      -
    • Class
    • +
    • Enumeration
    • +
    +
      +
    • Interface
    diff --git a/docs/modules/handlers_callback.html b/docs/modules/handlers_callback.html index 957aec23f..5bfcc5b65 100644 --- a/docs/modules/handlers_callback.html +++ b/docs/modules/handlers_callback.html @@ -77,6 +77,8 @@

    Server Interfaces

    Server Type aliases

    @@ -88,28 +90,29 @@

    Server Type aliases

    AfterCallback

    -
    AfterCallback: (req: NextApiRequest, res: NextApiResponse, session: default, state?: {}) => Promise<default> | default
    +
    AfterCallback: (req: NextApiRequest, res: NextApiResponse, session: default, state?: {}) => Promise<default> | default | undefined
    -

    Use this function for validating additional claims on the user's ID Token or adding removing items from - the session after login, eg

    +

    Use this function for validating additional claims on the user's ID token or adding removing items from + the session after login.

    - -

    Validate additional claims

    -
    -
    // pages/api/auth/[...auth0].js
    +						
    +
    example
    +

    Validate additional claims

    +
    // pages/api/auth/[...auth0].js
     import { handleAuth, handleCallback } from '@auth0/nextjs-auth0';
     
     const afterCallback = (req, res, session, state) => {
    -  if (!session.user.isAdmin) {
    -    throw new UnauthorizedError('User is not admin');
    +  if (session.user.isAdmin) {
    +    return session;
    +  } else {
    +    res.status(401).end('User is not admin');
       }
    -  return session;
     };
     
     export default handleAuth({
    @@ -117,15 +120,15 @@ 

    Validate additional claims

    try { await handleCallback(req, res, { afterCallback }); } catch (error) { - res.status(error.status || 500).end(error.message); + res.status(error.status || 500).end(); } } });
    - -

    Modify the session after login

    -
    -
    // pages/api/auth/[...auth0].js
    +							
    +
    example
    +

    Modify the session after login

    +
    // pages/api/auth/[...auth0].js
     import { handleAuth, handleCallback } from '@auth0/nextjs-auth0';
     
     const afterCallback = (req, res, session, state) => {
    @@ -134,6 +137,29 @@ 

    Modify the session after login

    return session; }; +export default handleAuth({ + async callback(req, res) { + try { + await handleCallback(req, res, { afterCallback }); + } catch (error) { + res.status(error.status || 500).end(); + } + } +}); +
    +
    +
    example
    +

    Redirect successful login based on claim

    +
    // pages/api/auth/[...auth0].js
    +import { handleAuth, handleCallback } from '@auth0/nextjs-auth0';
    +
    +const afterCallback = (req, res, session, state) => {
    +  if (!session.user.isAdmin) {
    +    res.setHeader('Location', '/admin');
    +  }
    +  return session;
    +};
    +
     export default handleAuth({
       async callback(req, res) {
         try {
    @@ -144,7 +170,7 @@ 

    Modify the session after login

    } });
    -
    +
    throws

    HandlerError

    @@ -155,7 +181,7 @@

    Type declaration

      • -
      • (req: NextApiRequest, res: NextApiResponse, session: default, state?: {}): Promise<default> | default
      • +
      • (req: NextApiRequest, res: NextApiResponse, session: default, state?: {}): Promise<default> | default | undefined
    • @@ -187,17 +213,17 @@

      Returns Promise

    - -

    HandleCallback

    -
    HandleCallback: (req: NextApiRequest, res: NextApiResponse, options?: CallbackOptions) => Promise<void>
    + +

    CallbackHandler

    +
    CallbackHandler: (req: NextApiRequest, res: NextApiResponse, options?: CallbackOptions) => Promise<void>
    -

    The handler for the api/auth/callback route.

    +

    The handler for the /api/auth/callback API route.

    throws
    @@ -233,6 +259,148 @@

    Returns Promise

    +
    + +

    CallbackOptionsProvider

    +
    CallbackOptionsProvider: (req: NextApiRequest) => CallbackOptions
    + +
    +
    +

    Options provider for the default callback handler. + Use this to generate options that depend on values from the request.

    +
    +
    +
    +

    Type declaration

    + +
    +
    +
    + +

    HandleCallback

    +
    HandleCallback: { (req: NextApiRequest, res: NextApiResponse<any>, options?: CallbackOptions): Promise<void>; (provider: CallbackOptionsProvider): CallbackHandler; (options: CallbackOptions): CallbackHandler }
    + +
    +
    +

    Use this to customize the default callback handler without overriding it. + You can still override the handler if needed.

    +
    +
    +
    example
    +

    Pass an options object

    +
    // pages/api/auth/[...auth0].js
    +import { handleAuth, handleCallback } from '@auth0/nextjs-auth0';
    +
    +export default handleAuth({
    +  callback: handleCallback({ redirectUri: 'https://example.com' })
    +});
    +
    +
    +
    example
    +

    Pass a function that receives the request and returns an options object

    +
    // pages/api/auth/[...auth0].js
    +import { handleAuth, handleCallback } from '@auth0/nextjs-auth0';
    +
    +export default handleAuth({
    +  callback: handleCallback((req) => {
    +    return { redirectUri: 'https://example.com' };
    +  })
    +});
    +
    +

    This is useful for generating options that depend on values from the request.

    +
    +
    example
    +

    Override the callback handler

    +
    import { handleAuth, handleCallback } from '@auth0/nextjs-auth0';
    +
    +export default handleAuth({
    +  callback: async (req, res) => {
    +    try {
    +      await handleCallback(req, res, {
    +        redirectUri: 'https://example.com'
    +      });
    +    } catch (error) {
    +      console.error(error);
    +    }
    +  }
    +});
    +
    +
    +
    +
    +
    +

    Type declaration

    + +
    +
    diff --git a/docs/modules/handlers_login.html b/docs/modules/handlers_login.html index 8e53f7da6..57922e2d6 100644 --- a/docs/modules/handlers_login.html +++ b/docs/modules/handlers_login.html @@ -79,6 +79,8 @@

    Server Type aliases

    @@ -92,12 +94,12 @@

    GetLoginState

    GetLoginState: (req: NextApiRequest, options: LoginOptions) => {}
    -

    Use this to store additional state for the user before they visit the Identity Provider to login.

    +

    Use this to store additional state for the user before they visit the identity provider to log in.

    // pages/api/auth/[...auth0].js
     import { handleAuth, handleLogin } from '@auth0/nextjs-auth0';
    @@ -111,7 +113,7 @@ 

    GetLoginState

    try { await handleLogin(req, res, { getLoginState }); } catch (error) { - res.status(error.status || 500).end(error.message); + res.status(error.status || 500).end(); } } }); @@ -150,15 +152,124 @@
    [key:

    HandleLogin

    -
    HandleLogin: (req: NextApiRequest, res: NextApiResponse, options?: LoginOptions) => Promise<void>
    +
    HandleLogin: { (req: NextApiRequest, res: NextApiResponse<any>, options?: LoginOptions): Promise<void>; (provider: LoginOptionsProvider): LoginHandler; (options: LoginOptions): LoginHandler }
    -

    The handler for the api/auth/login route.

    +

    Use this to customize the default login handler without overriding it. + You can still override the handler if needed.

    +
    +
    +
    example
    +

    Pass an options object

    +
    // pages/api/auth/[...auth0].js
    +import { handleAuth, handleLogin } from '@auth0/nextjs-auth0';
    +
    +export default handleAuth({
    +  login: handleLogin({
    +    authorizationParams: { connection: 'github' }
    +  })
    +});
    +
    +
    +
    example
    +

    Pass a function that receives the request and returns an options object

    +
    // pages/api/auth/[...auth0].js
    +import { handleAuth, handleLogin } from '@auth0/nextjs-auth0';
    +
    +export default handleAuth({
    +  login: handleLogin((req) => {
    +    return {
    +      authorizationParams: { connection: 'github' }
    +    };
    +  })
    +});
    +
    +

    This is useful for generating options that depend on values from the request.

    +
    +
    example
    +

    Override the login handler

    +
    import { handleAuth, handleLogin } from '@auth0/nextjs-auth0';
    +
    +export default handleAuth({
    +  login: async (req, res) => {
    +    try {
    +      await handleLogin(req, res, {
    +        authorizationParams: { connection: 'github' }
    +      });
    +    } catch (error) {
    +      console.error(error);
    +    }
    +  }
    +});
    +
    +
    +
    +
    +
    +

    Type declaration

    + +
    + +
    + +

    LoginHandler

    +
    LoginHandler: (req: NextApiRequest, res: NextApiResponse, options?: LoginOptions) => Promise<void>
    + +
    +
    +

    The handler for the /api/auth/login API route.

    throws
    @@ -194,6 +305,43 @@

    Returns Promise

    +
    + +

    LoginOptionsProvider

    +
    LoginOptionsProvider: (req: NextApiRequest) => LoginOptions
    + +
    +
    +

    Options provider for the default login handler. + Use this to generate options that depend on values from the request.

    +
    +
    +
    +

    Type declaration

    +
      +
    • + +
        +
      • +

        Parameters

        +
          +
        • +
          req: NextApiRequest
          +
        • +
        +

        Returns LoginOptions

        +
      • +
      +
    • +
    +
    +
    @@ -292,14 +455,19 @@

    Legend

    • Function
    • +
    • Function with type parameter
    • Type alias
    • Type alias with type parameter
      -
    • Interface
    • +
    • Class
    • +
    • Class with type parameter
      -
    • Class
    • +
    • Enumeration
    • +
    +
      +
    • Interface
    diff --git a/docs/modules/handlers_logout.html b/docs/modules/handlers_logout.html index 9470029b5..5b48bee91 100644 --- a/docs/modules/handlers_logout.html +++ b/docs/modules/handlers_logout.html @@ -77,6 +77,8 @@

    Server Interfaces

    Server Type aliases

    @@ -87,15 +89,120 @@

    Server Type aliases

    HandleLogout

    -
    HandleLogout: (req: NextApiRequest, res: NextApiResponse, options?: LogoutOptions) => Promise<void>
    +
    HandleLogout: { (req: NextApiRequest, res: NextApiResponse<any>, options?: LogoutOptions): Promise<void>; (provider: LogoutOptionsProvider): LogoutHandler; (options: LogoutOptions): LogoutHandler }
    -

    The handler for the api/auth/logout route.

    +

    Use this to customize the default logout handler without overriding it. + You can still override the handler if needed.

    +
    +
    +
    example
    +

    Pass an options object

    +
    // pages/api/auth/[...auth0].js
    +import { handleAuth, handleLogout } from '@auth0/nextjs-auth0';
    +
    +export default handleAuth({
    +  logout: handleLogout({ returnTo: 'https://example.com' })
    +});
    +
    +
    +
    example
    +

    Pass a function that receives the request and returns an options object

    +
    // pages/api/auth/[...auth0].js
    +import { handleAuth, handleLogout } from '@auth0/nextjs-auth0';
    +
    +export default handleAuth({
    +  logout: handleLogout((req) => {
    +    return { returnTo: 'https://example.com' };
    +  })
    +});
    +
    +

    This is useful for generating options that depend on values from the request.

    +
    +
    example
    +

    Override the logout handler

    +
    import { handleAuth, handleLogout } from '@auth0/nextjs-auth0';
    +
    +export default handleAuth({
    +  logout: async (req, res) => {
    +    try {
    +      await handleLogout(req, res, {
    +        returnTo: 'https://example.com'
    +      });
    +    } catch (error) {
    +      console.error(error);
    +    }
    +  }
    +});
    +
    +
    +
    +
    +
    +

    Type declaration

    + +
    +
    +
    + +

    LogoutHandler

    +
    LogoutHandler: (req: NextApiRequest, res: NextApiResponse, options?: LogoutOptions) => Promise<void>
    + +
    +
    +

    The handler for the /api/auth/logout API route.

    throws
    @@ -131,6 +238,43 @@

    Returns Promise

    +
    + +

    LogoutOptionsProvider

    +
    LogoutOptionsProvider: (req: NextApiRequest) => LogoutOptions
    + +
    +
    +

    Options provider for the default logout handler. + Use this to generate options that depend on values from the request.

    +
    +
    +
    +

    Type declaration

    + +
    +
    @@ -223,14 +382,19 @@

    Legend

    • Function
    • +
    • Function with type parameter
    • Type alias
    • Type alias with type parameter
      -
    • Interface
    • +
    • Class
    • +
    • Class with type parameter
      -
    • Class
    • +
    • Enumeration
    • +
    +
      +
    • Interface
    diff --git a/docs/modules/handlers_profile.html b/docs/modules/handlers_profile.html index 84654f24a..3cc16b606 100644 --- a/docs/modules/handlers_profile.html +++ b/docs/modules/handlers_profile.html @@ -75,7 +75,9 @@

    Other Type aliases

    Server Type aliases

    @@ -89,7 +91,7 @@

    AfterRefetch

    AfterRefetch: (req: NextApiRequest, res: NextApiResponse, session: default) => Promise<default> | default
    @@ -126,15 +128,118 @@

    Server Type aliases

    HandleProfile

    -
    HandleProfile: (req: NextApiRequest, res: NextApiResponse, options?: ProfileOptions) => Promise<void>
    +
    HandleProfile: { (req: NextApiRequest, res: NextApiResponse<any>, options?: ProfileOptions): Promise<void>; (provider: ProfileOptionsProvider): ProfileHandler; (options: ProfileOptions): ProfileHandler }
    -

    The handler for the /api/auth/me route.

    +

    Use this to customize the default profile handler without overriding it. + You can still override the handler if needed.

    +
    +
    +
    example
    +

    Pass an options object

    +
    // pages/api/auth/[...auth0].js
    +import { handleAuth, handleProfile } from '@auth0/nextjs-auth0';
    +
    +export default handleAuth({
    +  profile: handleProfile({ refetch: true })
    +});
    +
    +
    +
    example
    +

    Pass a function that receives the request and returns an options object

    +
    // pages/api/auth/[...auth0].js
    +import { handleAuth, handleProfile } from '@auth0/nextjs-auth0';
    +
    +export default handleAuth({
    +  profile: handleProfile((req) => {
    +    return { refetch: true };
    +  })
    +});
    +
    +

    This is useful for generating options that depend on values from the request.

    +
    +
    example
    +

    Override the profile handler

    +
    import { handleAuth, handleProfile } from '@auth0/nextjs-auth0';
    +
    +export default handleAuth({
    +  profile: async (req, res) => {
    +    try {
    +      await handleProfile(req, res, { refetch: true });
    +    } catch (error) {
    +      console.error(error);
    +    }
    +  }
    +});
    +
    +
    +
    +
    +
    +

    Type declaration

    + +
    +
    +
    + +

    ProfileHandler

    +
    ProfileHandler: (req: NextApiRequest, res: NextApiResponse, options?: ProfileOptions) => Promise<void>
    + +
    +
    +

    The handler for the /api/auth/me API route.

    throws
    @@ -176,13 +281,18 @@

    ProfileOptions

    ProfileOptions: { afterRefetch?: AfterRefetch; refetch?: boolean }
    -

    Custom options for HandleProfile

    +

    Options to customize the profile handler.

    +
    +
    see
    +

    HandleProfile

    +
    +

    Type declaration

    @@ -191,8 +301,9 @@

    Type declaration

    Optional afterRefetch?: AfterRefetch
    -

    Like {@AfterCallback} and {@AfterRefresh} when a session is created, you can use this function to validate or - add/remove claims after the session is updated. Will only run if {@link ProfileOptions.refetch} is true

    +

    Like AfterCallback and AfterRefresh when a session is created, you can use + this function to validate or add/remove claims after the session is updated. Will only run if + {@link ProfileOptions.refetch} is true.

    @@ -200,13 +311,51 @@
    Optional afterRefetchOptional refetch?: boolean
    -

    If set to true this will refetch the user profile information from /userinfo and save it to the session.

    +

    If set to true this will refetch the user profile information from /userinfo and save it + to the session.

    +
    + +

    ProfileOptionsProvider

    +
    ProfileOptionsProvider: (req: NextApiRequest) => ProfileOptions
    + +
    +
    +

    Options provider for the default profile handler. + Use this to generate options that depend on values from the request.

    +
    +
    +
    +

    Type declaration

    + +
    +
    @@ -302,14 +466,19 @@

    Legend

    • Function
    • +
    • Function with type parameter
    • Type alias
    • Type alias with type parameter
      -
    • Interface
    • +
    • Class
    • +
    • Class with type parameter
      -
    • Class
    • +
    • Enumeration
    • +
    +
      +
    • Interface
    diff --git a/docs/modules/helpers.html b/docs/modules/helpers.html index 2a4655368..0197aa8a6 100644 --- a/docs/modules/helpers.html +++ b/docs/modules/helpers.html @@ -71,7 +71,6 @@

    Index

    References

    -

    Module instance

    +

    Module helpers/testing

    @@ -68,58 +68,65 @@

    Index

    -

    Server Interfaces

    +

    Type aliases

    -

    Server Type aliases

    +

    Functions

    -

    Server Type aliases

    +

    Type aliases

    - -

    InitAuth0

    -
    InitAuth0: (params?: ConfigParameters) => SignInWithAuth0
    + +

    GenerateSessionCookieConfig

    +
    GenerateSessionCookieConfig: { duration?: number; secret: string } & Partial<CookieConfig>
    -

    Initialise your own instance of the SDK.

    +

    Configuration parameters used by generateSessionCookie.

    -

    See {@link Config}

    -
    -

    Type declaration

    -
    +
    +
    +

    Functions

    +
    + +

    Const generateSessionCookie

    + + - + +

    Parameters

    + +

    Returns Promise<string>

    + +
    @@ -130,16 +137,19 @@

    Returns Exports
  • - config + client
  • - frontend + client/use-user
  • - frontend/use-user + client/with-page-auth-required
  • - frontend/with-page-auth-required + config +
  • +
  • + edge
  • handlers @@ -162,17 +172,20 @@

    Returns helpers

  • -
  • - helpers/get-server-side-props-wrapper +
  • + helpers/testing
  • helpers/with-api-auth-required
  • +
  • + helpers/with-middleware-auth-required +
  • helpers/with-page-auth-required
  • -
  • - instance +
  • + index
  • session @@ -186,6 +199,9 @@

    Returns session/session

  • +
  • + session/update-session +
  • utils/errors
  • @@ -196,11 +212,11 @@

    Returns @@ -213,14 +229,19 @@

    Legend

    • Function
    • +
    • Function with type parameter
    • Type alias
    • Type alias with type parameter
      -
    • Interface
    • +
    • Class
    • +
    • Class with type parameter
      -
    • Class
    • +
    • Enumeration
    • +
    +
      +
    • Interface
    diff --git a/docs/modules/helpers_with_api_auth_required.html b/docs/modules/helpers_with_api_auth_required.html index dd6fe6b44..5e4302362 100644 --- a/docs/modules/helpers_with_api_auth_required.html +++ b/docs/modules/helpers_with_api_auth_required.html @@ -84,13 +84,13 @@

    WithApiAuthRequired

    WithApiAuthRequired: (apiRoute: NextApiHandler) => NextApiHandler
    -

    Wrap an API Route to check that the user has a valid session. If they're not logged in the handler will return a - 401 Unauthorized.

    +

    Wrap an API route to check that the user has a valid session. If they're not logged in the + handler will return a 401 Unauthorized.

    // pages/api/protected-route.js
     import { withApiAuthRequired, getSession } from '@auth0/nextjs-auth0';
    @@ -133,16 +133,19 @@ 

    Returns NextApiHa Exports
  • - config + client +
  • +
  • + client/use-user
  • - frontend + client/with-page-auth-required
  • - frontend/use-user + config
  • - frontend/with-page-auth-required + edge
  • handlers @@ -166,16 +169,19 @@

    Returns NextApiHa helpers

  • - helpers/get-server-side-props-wrapper + helpers/testing
  • helpers/with-api-auth-required
  • +
  • + helpers/with-middleware-auth-required +
  • helpers/with-page-auth-required
  • - instance + index
  • session @@ -189,6 +195,9 @@

    Returns NextApiHa
  • session/session
  • +
  • + session/update-session +
  • utils/errors
  • @@ -213,14 +222,19 @@

    Legend

    • Function
    • +
    • Function with type parameter
    • Type alias
    • Type alias with type parameter
      -
    • Interface
    • +
    • Class
    • +
    • Class with type parameter
      -
    • Class
    • +
    • Enumeration
    • +
    +
      +
    • Interface

  • diff --git a/docs/modules/helpers_get_server_side_props_wrapper.html b/docs/modules/helpers_with_middleware_auth_required.html similarity index 50% rename from docs/modules/helpers_get_server_side_props_wrapper.html rename to docs/modules/helpers_with_middleware_auth_required.html index 0761c2ac1..01ba71a48 100644 --- a/docs/modules/helpers_get_server_side_props_wrapper.html +++ b/docs/modules/helpers_with_middleware_auth_required.html @@ -3,7 +3,7 @@ - helpers/get-server-side-props-wrapper | @auth0/nextjs-auth0 + helpers/with-middleware-auth-required | @auth0/nextjs-auth0 @@ -53,10 +53,10 @@ @auth0/nextjs-auth0
  • - helpers/get-server-side-props-wrapper + helpers/with-middleware-auth-required
  • -

    Module helpers/get-server-side-props-wrapper

    +

    Module helpers/with-middleware-auth-required

    @@ -70,7 +70,7 @@

    Index

    Server Type aliases

    @@ -78,66 +78,64 @@

    Server Type aliases

    Server Type aliases

    -
    - -

    GetServerSidePropsWrapper

    -
    GetServerSidePropsWrapper<P, Q>: (getServerSideProps: GetServerSideProps<P, Q>) => GetServerSideProps<P, Q>
    +
    + +

    WithMiddlewareAuthRequired

    +
    WithMiddlewareAuthRequired: (middleware?: NextMiddleware) => NextMiddleware
    -

    If you're using >=Next 12 and getSession or getAccessToken without withPageAuthRequired, because - you don't want to require authentication on your route, you might get a warning/error: "You should not access 'res' - after getServerSideProps resolves". You can work around this by wrapping your getServerSideProps in - getServerSidePropsWrapper, this ensures that the code that accesses res will run within - the lifecycle of getServerSideProps, avoiding the warning/error eg:

    +

    Protect your pages with Next.js Middleware. For example:

    -

    NOTE: you do not need to do this if you're already using WithPageAuthRequired

    -
    // pages/protected-page.js
    -import { withPageAuthRequired } from '@auth0/nextjs-auth0';
    +						

    To protect all your routes:

    +
    // middleware.js
    +import { withMiddlewareAuthRequired } from '@auth0/nextjs-auth0/middleware';
     
    -export default function ProtectedPage() {
    -  return <div>Protected content</div>;
    -}
    +export default withMiddlewareAuthRequired();
    +
    +

    To protect specific routes:

    +
    // middleware.js
    +import { withMiddlewareAuthRequired } from '@auth0/nextjs-auth0/middleware';
    +
    +export default withMiddlewareAuthRequired();
    +
    +export const config = {
    +  matcher: '/about/:path*',
    +};
    +
    +

    For more info see: https://nextjs.org/docs/advanced-features/middleware#matching-paths

    +

    To run custom middleware for authenticated users:

    +
    // middleware.js
    +import { withMiddlewareAuthRequired, getSession } from '@auth0/nextjs-auth0/middleware';
     
    -export const getServerSideProps = getServerSidePropsWrapper(async (ctx) => {
    -  const session = getSession(ctx.req, ctx.res);
    -  if (session) {
    -    // Use is authenticated
    -  } else {
    -    // User is not authenticated
    -  }
    +export default withMiddlewareAuthRequired(async function middleware(req) {
    +  const res = NextResponse.next();
    +  const user = await getSession(req, res);
    +  res.cookies.set('hl', user.language);
    +  return res;
     });
     
    -

    Type parameters

    -
      -
    • -

      P = any

      -
    • -
    • -

      Q: ParsedUrlQuery = ParsedUrlQuery

      -
    • -

    Type declaration

    diff --git a/docs/modules/helpers_with_page_auth_required.html b/docs/modules/helpers_with_page_auth_required.html index f9437b997..120ab4077 100644 --- a/docs/modules/helpers_with_page_auth_required.html +++ b/docs/modules/helpers_with_page_auth_required.html @@ -87,13 +87,13 @@

    GetServerSidePropsResultWithSession

    GetServerSidePropsResultWithSession<P>: GetServerSidePropsResult<P & { user?: Claims | null }>

    If you wrap your getServerSideProps with WithPageAuthRequired your props object will be augmented with - the user property, which will be the user's Claims

    + the user property, which will be the user's Claims.

    // pages/profile.js
     import { withPageAuthRequired } from '@auth0/nextjs-auth0';
    @@ -118,12 +118,12 @@ 

    PageRoute

    PageRoute<P, Q>: (cts: GetServerSidePropsContext<Q>) => Promise<GetServerSidePropsResultWithSession<P>>
    -

    A page route that has been augmented with WithPageAuthRequired

    +

    A page route that has been augmented with WithPageAuthRequired.

    Type parameters

    @@ -160,15 +160,16 @@

    Returns Promise

    WithPageAuthRequired

    -
    WithPageAuthRequired: { <P>(Component: ComponentType<P & UserProps>, options?: WithPageAuthRequiredOptions): FC<P>; <P, Q>(opts?: WithPageAuthRequiredOptions<P, Q>): PageRoute<P, Q> }
    +
    WithPageAuthRequired: <P, Q>(opts?: WithPageAuthRequiredOptions<P, Q>) => PageRoute<P, Q>
    -

    Wrap your getServerSideProps with this method to make sure the user is authenticated before visiting the page.

    +

    Wrap your getServerSideProps with this method to make sure the user is authenticated before + visiting the page.

    // pages/protected-page.js
     import { withPageAuthRequired } from '@auth0/nextjs-auth0';
    @@ -179,36 +180,17 @@ 

    WithPageAuthRequired

    export const getServerSideProps = withPageAuthRequired();
    -

    If the user visits /protected-page without a valid session, it will redirect the user to the login page. - Then they will be returned to /protected-page after login.

    +

    If the user visits /protected-page without a valid session, it will redirect the user to the + login page. Then they will be returned to /protected-page after login.

    Type declaration

    diff --git a/docs/modules/index.html b/docs/modules/index.html new file mode 100644 index 000000000..c2dc30ab9 --- /dev/null +++ b/docs/modules/index.html @@ -0,0 +1,1093 @@ + + + + + + index | @auth0/nextjs-auth0 + + + + + + +
    +
    +
    +
    + +
    +
    + Options +
    +
    + All +
      +
    • Public
    • +
    • Public/Protected
    • +
    • All
    • +
    +
    + + +
    +
    + Menu +
    +
    +
    +
    +
    +
    + +

    Module index

    +
    +
    +
    +
    +
    +
    +
    +

    Index

    +
    + +
    +
    +
    +

    References

    +
    + +

    AccessTokenError

    + Re-exports AccessTokenError +
    +
    + +

    AccessTokenErrorCode

    + Re-exports AccessTokenErrorCode +
    +
    + +

    AccessTokenRequest

    + Re-exports AccessTokenRequest +
    +
    + +

    AfterCallback

    + Re-exports AfterCallback +
    +
    + +

    AfterRefetch

    + Re-exports AfterRefetch +
    +
    + +

    AuthError

    + Re-exports AuthError +
    +
    + +

    CallbackHandlerError

    + Re-exports CallbackHandlerError +
    +
    + +

    CallbackOptions

    + Re-exports CallbackOptions +
    +
    + +

    Claims

    + Re-exports Claims +
    +
    + +

    ConfigParameters

    + Re-exports ConfigParameters +
    +
    + +

    GetAccessToken

    + Re-exports GetAccessToken +
    +
    + +

    GetAccessTokenResult

    + Re-exports GetAccessTokenResult +
    +
    + +

    GetLoginState

    + Re-exports GetLoginState +
    +
    + +

    GetServerSidePropsResultWithSession

    + Re-exports GetServerSidePropsResultWithSession +
    +
    + +

    GetSession

    + Re-exports GetSession +
    +
    + +

    HandleAuth

    + Re-exports HandleAuth +
    +
    + +

    HandleCallback

    + Re-exports HandleCallback +
    +
    + +

    HandleLogin

    + Re-exports HandleLogin +
    +
    + +

    HandleLogout

    + Re-exports HandleLogout +
    +
    + +

    HandleProfile

    + Re-exports HandleProfile +
    +
    + +

    HandlerError

    + Re-exports HandlerError +
    +
    + +

    Handlers

    + Re-exports Handlers +
    +
    + +

    LoginHandlerError

    + Re-exports LoginHandlerError +
    +
    + +

    LoginOptions

    + Re-exports LoginOptions +
    +
    + +

    LogoutHandlerError

    + Re-exports LogoutHandlerError +
    +
    + +

    LogoutOptions

    + Re-exports LogoutOptions +
    +
    + +

    OnError

    + Re-exports OnError +
    +
    + +

    PageRoute

    + Re-exports PageRoute +
    +
    + +

    ProfileHandlerError

    + Re-exports ProfileHandlerError +
    +
    + +

    ProfileOptions

    + Re-exports ProfileOptions +
    +
    + +

    Session

    + Renames and exports default +
    +
    + +

    UpdateSession

    + Re-exports UpdateSession +
    +
    + +

    WithApiAuthRequired

    + Re-exports WithApiAuthRequired +
    +
    + +

    WithPageAuthRequired

    + Re-exports WithPageAuthRequired +
    +
    + +

    WithPageAuthRequiredOptions

    + Re-exports WithPageAuthRequiredOptions +
    +
    +
    +

    Server Type aliases

    +
    + +

    InitAuth0

    +
    InitAuth0: (params?: ConfigParameters) => Auth0Server
    + +
    +
    +

    Initialise your own instance of the SDK.

    +
    +

    See ConfigParameters.

    +
    +
    +

    Type declaration

    + +
    +
    +
    +
    +

    Functions

    +
    + +

    Const _initAuth

    + + +
    +
    + +

    Const getAccessToken

    + + +
    +
    + +

    Const getSession

    +
      +
    • getSession(req: IncomingMessage | NextApiRequest, res: ServerResponse | NextApiResponse<any>): Promise<undefined | null | default>
    • +
    +
      +
    • + +

      Parameters

      +
        +
      • +
        req: IncomingMessage | NextApiRequest
        +
      • +
      • +
        res: ServerResponse | NextApiResponse<any>
        +
      • +
      +

      Returns Promise<undefined | null | default>

      +
    • +
    +
    +
    + +

    Const handleAuth

    +
      +
    • handleAuth(userHandlers?: ApiHandlers | ErrorHandlers): NextApiHandler<any>
    • +
    +
      +
    • + +

      Parameters

      +
        +
      • +
        Optional userHandlers: ApiHandlers | ErrorHandlers
        +
      • +
      +

      Returns NextApiHandler<any>

      +
    • +
    +
    +
    + +

    Const handleCallback

    + + +
    +
    + +

    Const handleLogin

    + + +
    +
    + +

    Const handleLogout

    + + +
    +
    + +

    Const handleProfile

    + + +
    +
    + +

    Const initAuth0

    + + +
    +
    + +

    Const updateSession

    +
      +
    • updateSession(req: IncomingMessage | NextApiRequest, res: ServerResponse | NextApiResponse<any>, user: default): Promise<void>
    • +
    +
      +
    • + +

      Parameters

      +
        +
      • +
        req: IncomingMessage | NextApiRequest
        +
      • +
      • +
        res: ServerResponse | NextApiResponse<any>
        +
      • +
      • +
        user: default
        +
      • +
      +

      Returns Promise<void>

      +
    • +
    +
    +
    + +

    Const withApiAuthRequired

    +
      +
    • withApiAuthRequired(apiRoute: NextApiHandler<any>): NextApiHandler<any>
    • +
    +
      +
    • + +

      Parameters

      +
        +
      • +
        apiRoute: NextApiHandler<any>
        +
      • +
      +

      Returns NextApiHandler<any>

      +
    • +
    +
    +
    + +

    Const withPageAuthRequired

    + + +
    +
    +
    + +
    +
    +
    +
    +

    Legend

    +
    +
      +
    • Function
    • +
    • Function with type parameter
    • +
    • Type alias
    • +
    • Type alias with type parameter
    • +
    +
      +
    • Class
    • +
    • Class with type parameter
    • +
    +
      +
    • Enumeration
    • +
    +
      +
    • Interface
    • +
    +
    +
    +
    +
    + + + \ No newline at end of file diff --git a/docs/modules/session.html b/docs/modules/session.html index 15a8f94c7..1a2da552e 100644 --- a/docs/modules/session.html +++ b/docs/modules/session.html @@ -76,12 +76,8 @@

    References

  • GetAccessTokenResult
  • GetSession
  • Session
  • - -

    -
    -

    Classes

    -
    @@ -119,6 +115,16 @@

    GetSession

    Session

    Renames and exports default
    +
    + +

    SessionCache

    + Re-exports SessionCache +
    +
    + +

    UpdateSession

    + Re-exports UpdateSession +
    diff --git a/docs/modules/session_get_access_token.html b/docs/modules/session_get_access_token.html index c7fab2dfa..080d42692 100644 --- a/docs/modules/session_get_access_token.html +++ b/docs/modules/session_get_access_token.html @@ -95,7 +95,7 @@

    AfterRefresh

    AfterRefresh: (req: NextApiRequest, res: NextApiResponse, session: default) => Promise<default> | default
    @@ -135,12 +135,12 @@

    GetAccessToken

    GetAccessToken: (req: IncomingMessage | NextApiRequest, res: ServerResponse | NextApiResponse, accessTokenRequest?: AccessTokenRequest) => Promise<GetAccessTokenResult>
    -

    Get an Access Token to access an external API.

    +

    Get an access token to access an external API.

    throws
    @@ -185,16 +185,19 @@

    Returns PromiseExports
  • - config + client +
  • +
  • + client/use-user
  • - frontend + client/with-page-auth-required
  • - frontend/use-user + config
  • - frontend/with-page-auth-required + edge
  • handlers @@ -218,16 +221,19 @@

    Returns Promisehelpers

  • - helpers/get-server-side-props-wrapper + helpers/testing
  • helpers/with-api-auth-required
  • +
  • + helpers/with-middleware-auth-required +
  • helpers/with-page-auth-required
  • - instance + index
  • session @@ -241,6 +247,9 @@

    Returns Promise session/session

  • +
  • + session/update-session +
  • utils/errors
  • @@ -274,14 +283,19 @@

    Legend

    • Function
    • +
    • Function with type parameter
    • Type alias
    • Type alias with type parameter
      -
    • Interface
    • +
    • Class
    • +
    • Class with type parameter
      -
    • Class
    • +
    • Enumeration
    • +
    +
      +
    • Interface

    diff --git a/docs/modules/session_get_session.html b/docs/modules/session_get_session.html index e109febfd..591d583db 100644 --- a/docs/modules/session_get_session.html +++ b/docs/modules/session_get_session.html @@ -81,10 +81,10 @@

    Server Type aliases

    GetSession

    -
    GetSession: (req: IncomingMessage | NextApiRequest, res: ServerResponse | NextApiResponse) => default | null | undefined
    +
    GetSession: (req: IncomingMessage | NextApiRequest, res: ServerResponse | NextApiResponse) => Promise<default | null | undefined>
    @@ -97,7 +97,7 @@

    Type declaration

      • -
      • (req: IncomingMessage | NextApiRequest, res: ServerResponse | NextApiResponse): default | null | undefined
      • +
      • (req: IncomingMessage | NextApiRequest, res: ServerResponse | NextApiResponse): Promise<default | null | undefined>
      • @@ -110,7 +110,7 @@
        req: IncomingMessageServerResponse | NextApiResponse
      -

      Returns default | null | undefined

      +

      Returns Promise<default | null | undefined>

    @@ -126,16 +126,19 @@

    Returns Exports
  • - config + client +
  • +
  • + client/use-user
  • - frontend + client/with-page-auth-required
  • - frontend/use-user + config
  • - frontend/with-page-auth-required + edge
  • handlers @@ -159,16 +162,19 @@

    Returns helpers

  • - helpers/get-server-side-props-wrapper + helpers/testing
  • helpers/with-api-auth-required
  • +
  • + helpers/with-middleware-auth-required +
  • helpers/with-page-auth-required
  • - instance + index
  • session @@ -182,6 +188,9 @@

    Returns session/session

  • +
  • + session/update-session +
  • utils/errors
  • @@ -206,14 +215,19 @@

    Legend

    • Function
    • +
    • Function with type parameter
    • Type alias
    • Type alias with type parameter
      -
    • Interface
    • +
    • Class
    • +
    • Class with type parameter
      -
    • Class
    • +
    • Enumeration
    • +
    +
      +
    • Interface
    diff --git a/docs/modules/session_session.html b/docs/modules/session_session.html index a0d35b5f3..766358641 100644 --- a/docs/modules/session_session.html +++ b/docs/modules/session_session.html @@ -90,16 +90,19 @@

    Server Interfaces

    Exports
  • - config + client +
  • +
  • + client/use-user
  • - frontend + client/with-page-auth-required
  • - frontend/use-user + config
  • - frontend/with-page-auth-required + edge
  • handlers @@ -123,16 +126,19 @@

    Server Interfaces

    helpers
  • - helpers/get-server-side-props-wrapper + helpers/testing
  • helpers/with-api-auth-required
  • +
  • + helpers/with-middleware-auth-required +
  • helpers/with-page-auth-required
  • - instance + index
  • session @@ -146,6 +152,9 @@

    Server Interfaces

  • session/session
  • +
  • + session/update-session +
  • utils/errors
  • @@ -173,14 +182,19 @@

    Legend

    • Function
    • +
    • Function with type parameter
    • Type alias
    • Type alias with type parameter
      -
    • Interface
    • +
    • Class
    • +
    • Class with type parameter
      -
    • Class
    • +
    • Enumeration
    • +
    +
      +
    • Interface
    diff --git a/docs/modules/session_update_session.html b/docs/modules/session_update_session.html new file mode 100644 index 000000000..98fa513af --- /dev/null +++ b/docs/modules/session_update_session.html @@ -0,0 +1,254 @@ + + + + + + session/update-session | @auth0/nextjs-auth0 + + + + + + +
    +
    +
    +
    + +
    +
    + Options +
    +
    + All +
      +
    • Public
    • +
    • Public/Protected
    • +
    • All
    • +
    +
    + + +
    +
    + Menu +
    +
    +
    +
    +
    +
    + +

    Module session/update-session

    +
    +
    +
    +
    +
    +
    +
    +

    Index

    +
    +
    +
    +

    Server Type aliases

    + +
    +
    +
    +
    +
    +

    Server Type aliases

    +
    + +

    UpdateSession

    +
    UpdateSession: (req: IncomingMessage | NextApiRequest, res: ServerResponse | NextApiResponse, user: default) => Promise<void>
    + +
    +
    +

    Update the session object. The provided session object will replace the existing session.

    +
    +

    Note you can't use this method to login or logout - you should use the login and logout handlers for this. + If no session is provided, it doesn't contain a user or the user is not authenticated; this is a no-op.

    +
    // pages/api/update-user.js
    +import { getSession, updateSession } from '@auth0/nextjs-auth0';
    +
    +export default async function updateSession(req, res) {
    +  if (req.method === 'PUT') {
    +    const session = getSession(req, res);
    +    updateSession(req, res, { ...session, user: { ...user, foo: req.query.foo } });
    +    res.json({ success: true });
    +  }
    +};
    +
    +
    +
    +

    Type declaration

    +
      +
    • +
        +
      • (req: IncomingMessage | NextApiRequest, res: ServerResponse | NextApiResponse, user: default): Promise<void>
      • +
      +
        +
      • +

        Parameters

        +
          +
        • +
          req: IncomingMessage | NextApiRequest
          +
        • +
        • +
          res: ServerResponse | NextApiResponse
          +
        • +
        • +
          user: default
          +
        • +
        +

        Returns Promise<void>

        +
      • +
      +
    • +
    +
    +
    +
    +
    + +
    +
    +
    +
    +

    Legend

    +
    +
      +
    • Function
    • +
    • Function with type parameter
    • +
    • Type alias
    • +
    • Type alias with type parameter
    • +
    +
      +
    • Class
    • +
    • Class with type parameter
    • +
    +
      +
    • Enumeration
    • +
    +
      +
    • Interface
    • +
    +
    +
    +
    +
    + + + \ No newline at end of file diff --git a/docs/modules/utils_errors.html b/docs/modules/utils_errors.html index 5940613dc..171e27de8 100644 --- a/docs/modules/utils_errors.html +++ b/docs/modules/utils_errors.html @@ -68,47 +68,26 @@

    Index

    -
    -

    Functions

    -
    - -

    htmlSafe

    -
      -
    • htmlSafe(input: string): string
    • -
    - -
    -
    diff --git a/docs/modules/version.html b/docs/modules/version.html index 4778f8a4a..fb3bad88a 100644 --- a/docs/modules/version.html +++ b/docs/modules/version.html @@ -81,7 +81,7 @@

    Properties

    default

    -
    default: "1.9.2"
    +
    default: "2.0.0"
    @@ -94,16 +94,19 @@

    default

    Exports
  • - config + client +
  • +
  • + client/use-user
  • - frontend + client/with-page-auth-required
  • - frontend/use-user + config
  • - frontend/with-page-auth-required + edge
  • handlers @@ -127,16 +130,19 @@

    default

    helpers
  • - helpers/get-server-side-props-wrapper + helpers/testing
  • helpers/with-api-auth-required
  • +
  • + helpers/with-middleware-auth-required +
  • helpers/with-page-auth-required
  • - instance + index
  • session @@ -150,6 +156,9 @@

    default

  • session/session
  • +
  • + session/update-session +
  • utils/errors
  • @@ -174,14 +183,19 @@

    Legend

    • Function
    • +
    • Function with type parameter
    • Type alias
    • Type alias with type parameter
      -
    • Interface
    • +
    • Class
    • +
    • Class with type parameter
      -
    • Class
    • +
    • Enumeration
    • +
    +
      +
    • Interface
    diff --git a/edge.d.ts b/edge.d.ts new file mode 100644 index 000000000..9b6b563c9 --- /dev/null +++ b/edge.d.ts @@ -0,0 +1 @@ +export type * from './dist/edge'; diff --git a/edge.js b/edge.js new file mode 100644 index 000000000..3fe726875 --- /dev/null +++ b/edge.js @@ -0,0 +1 @@ +module.exports = require('./dist/edge'); diff --git a/examples/README.md b/examples/README.md index e5e505a6e..634d1df6e 100644 --- a/examples/README.md +++ b/examples/README.md @@ -101,7 +101,7 @@ For preview deployments you will either want to assign this to: See here for more information about Vercel's Automatic Urls: https://vercel.com/docs/concepts/deployments/automatic-urls -To do this, make sure "Automatically expose System Environment Variables" is checked in "Settings > Environment Variables" and assign either the Automatic Deployment URL or the Automatic Branch URL to `AUTH0_BASE_URL` in your `.env.production` file, eg +To do this, make sure **Automatically expose System Environment Variables** is checked in **Settings > Environment Variables** and assign either the Automatic Deployment URL or the Automatic Branch URL to `AUTH0_BASE_URL` in your `.env.production` file. For example: ```shell # .env.production diff --git a/examples/basic-example/components/header.jsx b/examples/basic-example/components/header.jsx index 472ad4d27..086c04444 100644 --- a/examples/basic-example/components/header.jsx +++ b/examples/basic-example/components/header.jsx @@ -1,6 +1,6 @@ import React from 'react'; import Link from 'next/link'; -import { useUser } from '@auth0/nextjs-auth0'; +import { useUser } from '@auth0/nextjs-auth0/client'; const Header = () => { const { user } = useUser(); @@ -10,12 +10,12 @@ const Header = () => {