mirror of https://github.com/veypi/OneAuth.git
refactor(auth): Implement lazy token parsing in UserID method
- Add jwt package import for token parsing
- Add private ctxKeyTokenParsed constant to track parse status
- Remove unused VBaseProvider variable
- Rewrite UserID method with lazy token parsing logic
- Check cached token status to avoid repeated parsing
- Extract and parse token from request when needed
- Validate token type is access token
- Cache userID and parsed status in request context
master
parent
3ea5499532
commit
261dd9ffb0
Loading…
Reference in New Issue