remix/middleware/csrf · FunctionView Source
getCsrfToken
Summary
Gets the CSRF token from the session. Creates one if missing.
Signature
function getCsrfToken(context: AnyRequestContext, tokenKey: string): string;
Parameters
context
Request context with a started session
tokenKey
Session key that stores the token
Returns
The active CSRF token