getCSRFToken method
Get CSRF token from cache
Implementation
Future<String?> getCSRFToken() async {
// Initialize if not already done
if (!_initialized) {
debugPrint('[NextAuth::TokenCache] is not initialized yet');
return null;
}
// Check if token is still valid in storage
final cookie = await getCSRFCookie();
if (cookie != null) {
return _csrfToken;
}
return null;
}