Skip to content

Commit 2852163

Browse files
committed
fix(nextjs): improve error handling for access token retrieval in AsgardeoNextClient
1 parent b37f317 commit 2852163

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

packages/nextjs/src/AsgardeoNextClient.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,6 @@ class AsgardeoNextClient<T extends AsgardeoNextConfig = AsgardeoNextConfig> exte
390390
const token = await getAccessToken();
391391

392392
if (typeof token !== 'string' || !token) {
393-
throw new Error('Access token not found');
394393
throw new AsgardeoRuntimeError(
395394
'Failed to get access token.',
396395
'AsgardeoNextClient-getAccessToken-RuntimeError-003',

0 commit comments

Comments
 (0)