From f810ffde073ac2077de0d22b4cb39e3b15cccd37 Mon Sep 17 00:00:00 2001 From: Adam Mcgrath Date: Fri, 18 Aug 2023 13:38:46 +0100 Subject: [PATCH 1/7] Improve session helper docs --- README.md | 34 ++--- ...ssion_get_access_token.GetAccessToken.html | 27 +++- .../types/session_get_session.GetSession.html | 29 +++- .../session_touch_session.TouchSession.html | 27 +++- .../session_update_session.UpdateSession.html | 26 +++- src/session/get-access-token.ts | 110 ++++++++++++++- src/session/get-session.ts | 108 ++++++++++++++- src/session/touch-session.ts | 103 +++++++++++++- src/session/update-session.ts | 127 +++++++++++++++++- 9 files changed, 553 insertions(+), 38 deletions(-) diff --git a/README.md b/README.md index 5c4908c46..411ec7e79 100644 --- a/README.md +++ b/README.md @@ -249,33 +249,33 @@ For other comprehensive examples, see the [EXAMPLES.md](https://github.com/auth0 `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/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) -- [handleLogout](https://auth0.github.io/nextjs-auth0/modules/handlers_logout.html) -- [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) -- [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) -- [withMiddlewareAuthRequired](https://auth0.github.io/nextjs-auth0/modules/helpers_with_middleware_auth_required.html) (Edge only) +- [Configuration Options and Environment variables](https://auth0.github.io/nextjs-auth0/types/config.ConfigParameters.html) +- [initAuth0](https://auth0.github.io/nextjs-auth0/types/init.InitAuth0.html) +- [handleAuth](https://auth0.github.io/nextjs-auth0/types/handlers_auth.HandleAuth.html) +- [handleLogin](https://auth0.github.io/nextjs-auth0/types/handlers_login.HandleLogin.html) +- [handleCallback](https://auth0.github.io/nextjs-auth0/types/handlers_callback.HandleCallback.html) +- [handleLogout](https://auth0.github.io/nextjs-auth0/types/handlers_logout.HandleLogout.html) +- [handleProfile](https://auth0.github.io/nextjs-auth0/types/handlers_profile.HandleProfile.html) +- [withApiAuthRequired](https://auth0.github.io/nextjs-auth0/types/helpers_with_api_auth_required.WithApiAuthRequired.html) +- [withPageAuthRequired](https://auth0.github.io/nextjs-auth0/types/helpers_with_page_auth_required.WithPageAuthRequired.html) +- [getSession](https://auth0.github.io/nextjs-auth0/types/session_get_session.GetSession.html) +- [updateSession](https://auth0.github.io/nextjs-auth0/types/session_update_session.UpdateSession.html) +- [getAccessToken](https://auth0.github.io/nextjs-auth0/types/session_get_access_token.GetAccessToken.html) +- [withMiddlewareAuthRequired](https://auth0.github.io/nextjs-auth0/types/helpers_with_middleware_auth_required.WithMiddlewareAuthRequired.html) (Edge only) ### 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) +- [UserProvider](https://auth0.github.io/nextjs-auth0/types/client_use_user.UserProvider.html) +- [useUser](https://auth0.github.io/nextjs-auth0/functions/client_use_user.useUser.html) +- [withPageAuthRequired](https://auth0.github.io/nextjs-auth0/types/client_with_page_auth_required.WithPageAuthRequired.html) ### Testing helpers `import * from @auth0/nextjs-auth0/testing` -- [generateSessionCookie](https://auth0.github.io/nextjs-auth0/modules/helpers_testing.html#generatesessioncookie) +- [generateSessionCookie](https://auth0.github.io/nextjs-auth0/types/helpers_testing.GenerateSessionCookieConfig.html) Visit the auto-generated [API Docs](https://auth0.github.io/nextjs-auth0/) for more details diff --git a/docs/types/session_get_access_token.GetAccessToken.html b/docs/types/session_get_access_token.GetAccessToken.html index 0a9a4b526..0bd54900e 100644 --- a/docs/types/session_get_access_token.GetAccessToken.html +++ b/docs/types/session_get_access_token.GetAccessToken.html @@ -24,7 +24,30 @@

Type declaration

+
  • Defined in session/get-access-token.ts:217
  • +
  • Defined in session/get-session.ts:117
  • +
  • Defined in session/touch-session.ts:118
  • +
  • Defined in session/get-access-token.ts:217
  • +
  • Defined in session/touch-session.ts:117
  • +
  • Defined in session/update-session.ts:140
  • +
  • Defined in session/get-access-token.ts:217
  • +
  • Defined in session/update-session.ts:139
  • +
  • Defined in session/get-session.ts:115
  • +
  • Defined in session/touch-session.ts:116