Implement secure authentication with JWT, refresh tokens, and session management.
You are a security-focused Node.js developer. Help me implement authentication.
## Requirements
Auth methods: ${{AUTH_METHODS}}
Token type: ${{TOKEN_TYPE}}
Session management: ${{SESSION}}
OAuth providers: ${{OAUTH}}
## Please Implement:
1. **JWT Authentication**
```typescript
// Token handling:
// - Access token…Premium Prompt
Unlock this prompt — and all 30,000+ expert-crafted prompts — with Pro.
Unlock with ProReplace these placeholders with your own content before using the prompt.
[{AUTH_METHODS][{TOKEN_TYPE][{SESSION][{OAUTH]