diff --git a/CHANGELOG.md b/CHANGELOG.md index f2f93b7f4..9050b8ce2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## [v2.6.3](https://github.com/auth0/nextjs-auth0/tree/v2.6.3) (2023-06-26) +[Full Changelog](https://github.com/auth0/nextjs-auth0/compare/v2.6.2...v2.6.3) + +**Fixed** +- Fix for setting custom cookies in `withMiddlewareAuthRequired` [\#1263](https://github.com/auth0/nextjs-auth0/pull/1263) ([adamjmcgrath](https://github.com/adamjmcgrath)) + ## [v2.6.2](https://github.com/auth0/nextjs-auth0/tree/v2.6.2) (2023-06-09) [Full Changelog](https://github.com/auth0/nextjs-auth0/compare/v2.6.1...v2.6.2) diff --git a/docs/classes/client_use_user.RequestError.html b/docs/classes/client_use_user.RequestError.html index 549d7ca65..1ded88efd 100644 --- a/docs/classes/client_use_user.RequestError.html +++ b/docs/classes/client_use_user.RequestError.html @@ -31,7 +31,7 @@

Hierarchy

+
  • Defined in client/use-user.tsx:46
  • @@ -60,14 +60,14 @@
    status: Returns RequestError
    +
  • Defined in client/use-user.tsx:49
  • Properties

    status: number
    +
  • Defined in client/use-user.tsx:47
  • +
  • Defined in session/session.ts:23
  • +
  • Defined in utils/errors.ts:41
  • name: string
    @@ -107,7 +107,7 @@
    +
  • Defined in utils/errors.ts:46
  • status?: number
    @@ -116,7 +116,7 @@
    +
  • Defined in utils/errors.ts:62
  • +
  • Defined in utils/errors.ts:62
  • +
  • Defined in utils/errors.ts:41
  • name: string
    @@ -110,7 +110,7 @@
    +
  • Defined in utils/errors.ts:46
  • status?: number
    @@ -119,12 +119,12 @@
    +
  • Defined in utils/errors.ts:62
  • code: string = 'ERR_CALLBACK_HANDLER_FAILURE'
    +
  • Defined in utils/errors.ts:172
  • +
  • Defined in utils/errors.ts:41
  • name: string
    @@ -114,7 +114,7 @@
    +
  • Defined in utils/errors.ts:46
  • status?: number
    @@ -123,7 +123,7 @@
    +
  • Defined in utils/errors.ts:62
  • +
  • Defined in utils/errors.ts:41
  • name: string
    @@ -98,7 +98,7 @@
    +
  • Defined in utils/errors.ts:46
  • status?: number
    @@ -107,12 +107,12 @@
    +
  • Defined in utils/errors.ts:62
  • code: string = 'ERR_LOGIN_HANDLER_FAILURE'
    +
  • Defined in utils/errors.ts:192
  • +
  • Defined in utils/errors.ts:41
  • name: string
    @@ -98,7 +98,7 @@
    +
  • Defined in utils/errors.ts:46
  • status?: number
    @@ -107,12 +107,12 @@
    +
  • Defined in utils/errors.ts:62
  • code: string = 'ERR_LOGOUT_HANDLER_FAILURE'
    +
  • Defined in utils/errors.ts:212
  • +
  • Defined in utils/errors.ts:41
  • name: string
    @@ -98,7 +98,7 @@
    +
  • Defined in utils/errors.ts:46
  • status?: number
    @@ -107,12 +107,12 @@
    +
  • Defined in utils/errors.ts:62
  • code: string = 'ERR_PROFILE_HANDLER_FAILURE'
    +
  • Defined in utils/errors.ts:232
  • +
  • Defined in utils/errors.ts:79
  • @@ -42,32 +42,32 @@

    Enumeration Members

    EXPIRED_ACCESS_TOKEN: "ERR_EXPIRED_ACCESS_TOKEN"
    +
  • Defined in utils/errors.ts:83
  • FAILED_REFRESH_GRANT: "ERR_FAILED_REFRESH_GRANT"
    +
  • Defined in utils/errors.ts:85
  • INSUFFICIENT_SCOPE: "ERR_INSUFFICIENT_SCOPE"
    +
  • Defined in utils/errors.ts:84
  • MISSING_ACCESS_TOKEN: "ERR_MISSING_ACCESS_TOKEN"
    +
  • Defined in utils/errors.ts:81
  • MISSING_REFRESH_TOKEN: "ERR_MISSING_REFRESH_TOKEN"
    +
  • Defined in utils/errors.ts:82
  • MISSING_SESSION: "ERR_MISSING_SESSION"
    +
  • Defined in utils/errors.ts:80
  • +
  • Defined in client/use-user.tsx:190
  • +
  • Defined in client/use-user.tsx:134
  • Returns Promise<undefined | null | default>

    +
  • Defined in edge.ts:16
  • +
  • Defined in edge.ts:18
  • +
  • Defined in helpers/testing.ts:23
  • +
  • Defined in index.ts:161
  • +
  • Defined in session/get-access-token.ts:86
  • Returns CallbackHandler

    +
  • Defined in handlers/callback.ts:186
  • @@ -51,7 +51,7 @@

    Parameters

    options: CallbackOptions
  • Returns CallbackHandler

    +
  • Defined in handlers/callback.ts:187
  • Returns LoginHandler

    +
  • Defined in handlers/login.ts:225
  • @@ -51,7 +51,7 @@

    Parameters

    options: LoginOptions
  • Returns LoginHandler

    +
  • Defined in handlers/login.ts:226
  • Returns LogoutHandler

    +
  • Defined in handlers/logout.ts:87
  • @@ -51,7 +51,7 @@

    Parameters

    options: LogoutOptions
  • Returns LogoutHandler

    +
  • Defined in handlers/logout.ts:88
  • Returns ProfileHandler

    +
  • Defined in handlers/profile.ts:90
  • @@ -51,7 +51,7 @@

    Parameters

    options: ProfileOptions
  • Returns ProfileHandler

    +
  • Defined in handlers/profile.ts:91
  • +
  • Defined in client/with-page-auth-required.tsx:42
  • returnTo?: string
    @@ -89,7 +89,7 @@
    +
  • Defined in client/with-page-auth-required.tsx:32
  • +
  • Defined in config.ts:336
  • +
  • Defined in config.ts:72
  • clientAssertionSigningAlg?: string
    @@ -101,7 +101,7 @@
    +
  • Defined in config.ts:194
  • clientAssertionSigningKey?: string
    @@ -111,7 +111,7 @@
    +
  • Defined in config.ts:185
  • clientID: string
    @@ -120,7 +120,7 @@
    +
  • Defined in config.ts:78
  • clientSecret?: string
    @@ -130,7 +130,7 @@
    +
  • Defined in config.ts:85
  • clockTolerance: number
    @@ -138,7 +138,7 @@
    +
  • Defined in config.ts:92
  • enableTelemetry: boolean
    @@ -148,7 +148,7 @@
    +
  • Defined in config.ts:106
  • getLoginState: ((req, options) => Record<string, any>)
    @@ -175,7 +175,7 @@
    options: Returns Record<string, any>
    +
  • Defined in config.ts:125
  • httpTimeout: number
    @@ -185,7 +185,7 @@
    +
  • Defined in config.ts:99
  • idTokenSigningAlg: string
    @@ -194,7 +194,7 @@
    +
  • Defined in config.ts:144
  • identityClaimFilter: string[]
    @@ -204,7 +204,7 @@
    +
  • Defined in config.ts:132
  • idpLogout: boolean
    @@ -213,7 +213,7 @@
    +
  • Defined in config.ts:138
  • issuerBaseURL: string
    @@ -223,7 +223,7 @@
    +
  • Defined in config.ts:151
  • legacySameSiteCookie: boolean
    @@ -233,7 +233,7 @@
    +
  • Defined in config.ts:158
  • routes: {
        callback: string;
        postLogoutRedirect: string;
    }
    @@ -259,7 +259,7 @@
    postLogoutRedirect
    +
  • Defined in config.ts:163
  • secret: string | string[]
    @@ -271,7 +271,7 @@
    +
  • Defined in config.ts:19
  • session: SessionConfig
    @@ -279,7 +279,7 @@
    +
  • Defined in config.ts:24
  • +
  • Defined in config.ts:355
  • session: Pick<SessionConfig, "storeIDToken">
    +
  • Defined in config.ts:360
  • +
  • Defined in config.ts:223
  • name: string
    @@ -115,7 +115,7 @@
    +
  • Defined in config.ts:209
  • rolling: boolean
    @@ -128,7 +128,7 @@
    +
  • Defined in config.ts:236
  • rollingDuration: number | false
    @@ -140,7 +140,7 @@
    +
  • Defined in config.ts:245
  • store?: SessionStore<default>
    @@ -149,7 +149,7 @@
    +
  • Defined in config.ts:215
  • storeIDToken: boolean
    @@ -159,7 +159,7 @@
    +
  • Defined in config.ts:269
  • +
  • Defined in handlers/logout.ts:19
  • +
  • Defined in index.ts:103
  • handleLogin: HandleLogin
    @@ -88,7 +88,7 @@
    +
  • Defined in index.ts:98
  • handleLogout: HandleLogout
    @@ -96,7 +96,7 @@
    +
  • Defined in index.ts:108
  • handleProfile: HandleProfile
    @@ -104,7 +104,7 @@
    +
  • Defined in index.ts:113
  • touchSession: TouchSession
    @@ -112,7 +112,7 @@
    +
  • Defined in index.ts:83
  • updateSession: UpdateSession
    @@ -120,7 +120,7 @@
    +
  • Defined in index.ts:88
  • withApiAuthRequired: WithApiAuthRequired
    @@ -128,7 +128,7 @@
    +
  • Defined in index.ts:118
  • withPageAuthRequired: WithPageAuthRequired
    @@ -136,7 +136,7 @@
    +
  • Defined in index.ts:123
  • +
  • Defined in session/get-access-token.ts:21
  • +
  • Defined in client/use-user.tsx:1
  • Index

    diff --git a/docs/modules/client_with_page_auth_required.html b/docs/modules/client_with_page_auth_required.html index 022f628d9..af1ac2605 100644 --- a/docs/modules/client_with_page_auth_required.html +++ b/docs/modules/client_with_page_auth_required.html @@ -16,7 +16,7 @@
  • client/with-page-auth-required
  • Module client/with-page-auth-required

    +
  • Defined in client/with-page-auth-required.tsx:1
  • Index

    diff --git a/docs/modules/config.html b/docs/modules/config.html index 72869ca88..c5b13c713 100644 --- a/docs/modules/config.html +++ b/docs/modules/config.html @@ -16,7 +16,7 @@
  • config
  • Module config

    +
  • Defined in config.ts:1
  • Index

    diff --git a/docs/modules/edge.html b/docs/modules/edge.html index b40ae0536..d05ac4470 100644 --- a/docs/modules/edge.html +++ b/docs/modules/edge.html @@ -16,7 +16,7 @@
  • edge
  • Module edge

    +
  • Defined in edge.ts:1
  • diff --git a/docs/modules/handlers.html b/docs/modules/handlers.html index 018fa10bb..30f6f9add 100644 --- a/docs/modules/handlers.html +++ b/docs/modules/handlers.html @@ -16,7 +16,7 @@
  • handlers
  • Module handlers

    +
  • Defined in handlers/index.ts:1
  • diff --git a/docs/modules/handlers_auth.html b/docs/modules/handlers_auth.html index 2f37b0495..5813268be 100644 --- a/docs/modules/handlers_auth.html +++ b/docs/modules/handlers_auth.html @@ -16,7 +16,7 @@
  • handlers/auth
  • Module handlers/auth

    +
  • Defined in handlers/auth.ts:1
  • Index

    diff --git a/docs/modules/handlers_callback.html b/docs/modules/handlers_callback.html index 883fab27f..6983d8ad9 100644 --- a/docs/modules/handlers_callback.html +++ b/docs/modules/handlers_callback.html @@ -16,7 +16,7 @@
  • handlers/callback
  • Module handlers/callback

    +
  • Defined in handlers/callback.ts:1
  • Index

    diff --git a/docs/modules/handlers_login.html b/docs/modules/handlers_login.html index fd8fbf17b..01ad291d0 100644 --- a/docs/modules/handlers_login.html +++ b/docs/modules/handlers_login.html @@ -16,7 +16,7 @@
  • handlers/login
  • Module handlers/login

    +
  • Defined in handlers/login.ts:1
  • Index

    diff --git a/docs/modules/handlers_logout.html b/docs/modules/handlers_logout.html index 65ab523e4..e7c552822 100644 --- a/docs/modules/handlers_logout.html +++ b/docs/modules/handlers_logout.html @@ -16,7 +16,7 @@
  • handlers/logout
  • Module handlers/logout

    +
  • Defined in handlers/logout.ts:1
  • Index

    diff --git a/docs/modules/handlers_profile.html b/docs/modules/handlers_profile.html index f0fbbb34f..dab7722e2 100644 --- a/docs/modules/handlers_profile.html +++ b/docs/modules/handlers_profile.html @@ -16,7 +16,7 @@
  • handlers/profile
  • Module handlers/profile

    +
  • Defined in handlers/profile.ts:1
  • Index

    diff --git a/docs/modules/helpers.html b/docs/modules/helpers.html index dc3d42902..5a3fa8cc8 100644 --- a/docs/modules/helpers.html +++ b/docs/modules/helpers.html @@ -16,7 +16,7 @@
  • helpers
  • Module helpers

    +
  • Defined in helpers/index.ts:1
  • diff --git a/docs/modules/helpers_testing.html b/docs/modules/helpers_testing.html index 86ad7306c..cd76d8dd9 100644 --- a/docs/modules/helpers_testing.html +++ b/docs/modules/helpers_testing.html @@ -16,7 +16,7 @@
  • helpers/testing
  • Module helpers/testing

    +
  • Defined in helpers/testing.ts:1
  • Index

    diff --git a/docs/modules/helpers_with_api_auth_required.html b/docs/modules/helpers_with_api_auth_required.html index c1219e387..cb5d24cf4 100644 --- a/docs/modules/helpers_with_api_auth_required.html +++ b/docs/modules/helpers_with_api_auth_required.html @@ -16,7 +16,7 @@
  • helpers/with-api-auth-required
  • Module helpers/with-api-auth-required

    +
  • Defined in helpers/with-api-auth-required.ts:1
  • Index

    diff --git a/docs/modules/helpers_with_middleware_auth_required.html b/docs/modules/helpers_with_middleware_auth_required.html index da0b2e0bf..46435fb07 100644 --- a/docs/modules/helpers_with_middleware_auth_required.html +++ b/docs/modules/helpers_with_middleware_auth_required.html @@ -16,7 +16,7 @@
  • helpers/with-middleware-auth-required
  • Module helpers/with-middleware-auth-required

    +
  • Defined in helpers/with-middleware-auth-required.ts:1
  • Index

    diff --git a/docs/modules/helpers_with_page_auth_required.html b/docs/modules/helpers_with_page_auth_required.html index 773d000d8..64a6adc5f 100644 --- a/docs/modules/helpers_with_page_auth_required.html +++ b/docs/modules/helpers_with_page_auth_required.html @@ -16,7 +16,7 @@
  • helpers/with-page-auth-required
  • Module helpers/with-page-auth-required

    +
  • Defined in helpers/with-page-auth-required.ts:1
  • Index

    diff --git a/docs/modules/index.html b/docs/modules/index.html index f4e9be304..bb1c7aa38 100644 --- a/docs/modules/index.html +++ b/docs/modules/index.html @@ -16,7 +16,7 @@
  • index
  • Module index

    +
  • Defined in index.ts:1
  • diff --git a/docs/modules/session.html b/docs/modules/session.html index 9e28e165d..6e386708b 100644 --- a/docs/modules/session.html +++ b/docs/modules/session.html @@ -16,7 +16,7 @@
  • session
  • Module session

    +
  • Defined in session/index.ts:1
  • diff --git a/docs/modules/session_get_access_token.html b/docs/modules/session_get_access_token.html index c7455dd1e..c9f9030c7 100644 --- a/docs/modules/session_get_access_token.html +++ b/docs/modules/session_get_access_token.html @@ -16,7 +16,7 @@
  • session/get-access-token
  • Module session/get-access-token

    +
  • Defined in session/get-access-token.ts:1
  • Index

    diff --git a/docs/modules/session_get_session.html b/docs/modules/session_get_session.html index 4ddbeaa19..8cd7e2591 100644 --- a/docs/modules/session_get_session.html +++ b/docs/modules/session_get_session.html @@ -16,7 +16,7 @@
  • session/get-session
  • Module session/get-session

    +
  • Defined in session/get-session.ts:1
  • Index

    diff --git a/docs/modules/session_session.html b/docs/modules/session_session.html index 843790228..7055da33f 100644 --- a/docs/modules/session_session.html +++ b/docs/modules/session_session.html @@ -16,7 +16,7 @@
  • session/session
  • Module session/session

    +
  • Defined in session/session.ts:1
  • Index

    diff --git a/docs/modules/session_touch_session.html b/docs/modules/session_touch_session.html index 7ff08543b..af2bfeb47 100644 --- a/docs/modules/session_touch_session.html +++ b/docs/modules/session_touch_session.html @@ -16,7 +16,7 @@
  • session/touch-session
  • Module session/touch-session

    +
  • Defined in session/touch-session.ts:1
  • Index

    diff --git a/docs/modules/session_update_session.html b/docs/modules/session_update_session.html index ae507dc1b..cb4f3ddda 100644 --- a/docs/modules/session_update_session.html +++ b/docs/modules/session_update_session.html @@ -16,7 +16,7 @@
  • session/update-session
  • Module session/update-session

    +
  • Defined in session/update-session.ts:1
  • Index

    diff --git a/docs/modules/utils_errors.html b/docs/modules/utils_errors.html index 4ca66bdea..3648ae6aa 100644 --- a/docs/modules/utils_errors.html +++ b/docs/modules/utils_errors.html @@ -16,7 +16,7 @@
  • utils/errors
  • Module utils/errors

    +
  • Defined in utils/errors.ts:1
  • Index

    diff --git a/docs/modules/version.html b/docs/modules/version.html index 99a5a66b3..13ee22f7d 100644 --- a/docs/modules/version.html +++ b/docs/modules/version.html @@ -16,7 +16,7 @@
  • version
  • Module version

    +
  • Defined in version.ts:1
  • Index

    diff --git a/docs/types/client_use_user.UserContext.html b/docs/types/client_use_user.UserContext.html index 5bd1998b4..16a77b968 100644 --- a/docs/types/client_use_user.UserContext.html +++ b/docs/types/client_use_user.UserContext.html @@ -38,8 +38,8 @@
    isLoadingOptional user?: UserProfile
    +
  • Defined in client/use-user.tsx:28
  • +
  • Defined in client/use-user.tsx:116
  • +
  • Defined in client/use-user.tsx:164
  • +
  • Defined in client/use-user.tsx:104
  • +
  • Defined in client/with-page-auth-required.tsx:76
  • +
  • Defined in config.ts:451
  • +
  • Defined in edge.ts:14
  • +
  • Defined in edge.ts:16
  • +
  • Defined in edge.ts:18
  • +
  • Defined in handlers/auth.ts:94
  • +
  • Defined in handlers/auth.ts:61
  • +
  • Defined in handlers/auth.ts:117
  • +
  • Defined in handlers/callback.ts:90
  • +
  • Defined in handlers/callback.ts:197
  • +
  • Defined in handlers/callback.ts:132
  • +
  • Defined in handlers/callback.ts:184
  • +
  • Defined in handlers/login.ts:33
  • +
  • Defined in handlers/login.ts:223
  • +
  • Defined in handlers/login.ts:236
  • +
  • Defined in handlers/login.ts:167
  • +
  • Defined in handlers/logout.ts:85
  • +
  • Defined in handlers/logout.ts:98
  • +
  • Defined in handlers/logout.ts:33
  • +
  • Defined in handlers/profile.ts:8
  • +
  • Defined in handlers/profile.ts:88
  • +
  • Defined in handlers/profile.ts:101
  • +
  • Defined in handlers/profile.ts:17
  • +
  • Defined in handlers/profile.ts:38
  • +
  • Defined in helpers/testing.ts:7
  • +
  • Defined in helpers/with-api-auth-required.ts:23
  • +
  • Defined in helpers/with-middleware-auth-required.ts:47
  • +
  • Defined in helpers/with-page-auth-required.ts:23
  • +
  • Defined in helpers/with-page-auth-required.ts:30
  • +
  • Defined in helpers/with-page-auth-required.ts:93
  • +
  • Defined in helpers/with-page-auth-required.ts:65
  • +
  • Defined in index.ts:138
  • +
  • Defined in index.ts:278
  • +
  • Defined in index.ts:279
  • +
  • Defined in session/get-access-token.ts:10
  • +
  • Defined in session/get-access-token.ts:86
  • +
  • Defined in session/get-session.ts:11
  • +
  • Defined in session/touch-session.ts:23
  • +
  • Defined in session/update-session.ts:27
  • +
  • Defined in version.ts:1