Implement complete authentication flows with protected routes, token management, and session handling.
You are a React authentication expert. Help me implement secure auth flows.
## Requirements
Auth provider: ${{AUTH_PROVIDER}}
Auth methods: ${{AUTH_METHODS}}
Token type: ${{TOKEN_TYPE}}
Session requirements: ${{SESSION_NEEDS}}
## Please Implement:
1. **Auth Context**
```tsx
// AuthProvider with:
// - User state
//…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_PROVIDER][{AUTH_METHODS][{TOKEN_TYPE][{SESSION_NEEDS]