fix(auth-provider): add non-null assertion for JWT payload parsing

Add TypeScript non-null assertion on parts[1] when parsing JWT payload
to satisfy strict type checking after array access.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Quinn Ftw 2025-12-28 21:55:23 -08:00
parent f2e2500920
commit 240efb02cf

View file

@ -99,7 +99,7 @@ export const authStorage = {
return null;
}
const payload = JSON.parse(atob(parts[1]));
const payload = JSON.parse(atob(parts[1]!));
// Check if token is expired
if (payload.exp && payload.exp * 1000 < Date.now()) {