MCPcopy Index your code
hub / github.com/21st-dev/1code / generateState

Function generateState

src/main/lib/oauth.ts:508–510  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

506
507// Generate random state for CSRF protection
508export function generateState(): string {
509 return randomBytes(16).toString('hex');
510}
511
512export class CraftOAuth {
513 private config: OAuthConfig;

Callers 2

authenticateMethod · 0.85
startAuthFlowMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected