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:
parent
f2e2500920
commit
240efb02cf
1 changed files with 1 additions and 1 deletions
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue