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