diff --git a/packages/core/src/lib/actions/callback/oauth/checks.ts b/packages/core/src/lib/actions/callback/oauth/checks.ts index 4c2657e307..8d8fac115b 100644 --- a/packages/core/src/lib/actions/callback/oauth/checks.ts +++ b/packages/core/src/lib/actions/callback/oauth/checks.ts @@ -171,7 +171,7 @@ export const state = { * An error is thrown if the state is missing or invalid. */ use: useCookie("state", "state"), - /** Decodes the state. If it could not be decoded, it returns `null`. */ + /** Decodes the state. If it could not be decoded, it throws an error. */ async decode(state: string, options: InternalOptions) { try { options.logger.debug("DECODE_STATE", { state })