Skip to content

Commit

Permalink
fix: slice token bearer prefix in invalidate function (#1168)
Browse files Browse the repository at this point in the history
  • Loading branch information
soulful-ramble authored Sep 2, 2024
1 parent e418ae3 commit f4b6caf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/auth/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,6 @@ export const validateToken = async (
};

export const invalidateSessionToken = async (token: string) => {
await adapter.deleteSession?.(token);
const sessionToken = token.slice("Bearer ".length);
await adapter.deleteSession?.(sessionToken);
};

0 comments on commit f4b6caf

Please sign in to comment.