Skip to content

Commit 41ba279

Browse files
committed
fix(storage): update error message
1 parent c6d6bb4 commit 41ba279

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/auth-js/src/lib/errors.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,8 @@ export class AuthPKCECodeVerifierMissingError extends CustomAuthError {
240240
super(
241241
'PKCE code verifier not found in storage. ' +
242242
'This can happen if the auth flow was initiated in a different browser or device, ' +
243-
'or if the storage was cleared. For server-side auth, ensure you are using ' +
244-
'@supabase/ssr with cookie-based storage.',
243+
'or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), ' +
244+
'use @supabase/ssr on both the server and client to store the code verifier in cookies.',
245245
'AuthPKCECodeVerifierMissingError',
246246
400,
247247
'pkce_code_verifier_not_found'

0 commit comments

Comments
 (0)