Remove generateToken until needed
This commit is contained in:
parent
bb49189bdf
commit
f292b12eec
2 changed files with 0 additions and 7 deletions
|
|
@ -1,5 +0,0 @@
|
|||
import crypto from "node:crypto";
|
||||
|
||||
export function generateToken(): string {
|
||||
return crypto.randomBytes(32).toString("hex");
|
||||
}
|
||||
|
|
@ -21,8 +21,6 @@ export interface OAuthServerProvider {
|
|||
/**
|
||||
* Begins the authorization flow, which can either be implemented by this server itself or via redirection to a separate authorization server.
|
||||
*
|
||||
* An authorization code can be generated using the `generateToken` function.
|
||||
*
|
||||
* This server must eventually issue a redirect with an authorization response or an error response to the given redirect URI. Per OAuth 2.1:
|
||||
* - In the successful case, the redirect MUST include the `code` and `state` (if present) query parameters.
|
||||
* - In the error case, the redirect MUST include the `error` query parameter, and MAY include an optional `error_description` query parameter.
|
||||
|
|
|
|||
Loading…
Reference in a new issue