diff --git a/src/server/auth/clients.ts b/src/server/auth/clients.ts index 4e3f8e17e..345594dcb 100644 --- a/src/server/auth/clients.ts +++ b/src/server/auth/clients.ts @@ -10,13 +10,13 @@ export interface OAuthRegisteredClientsStore { getClient(clientId: string): OAuthClientInformationFull | undefined | Promise; /** - * Registers a new client with the server. The client ID and secret will be automatically generated by the library. A modified version of the client information can be returned to reflect specific values enforced by the server. + * Registers a new client with the server. The client ID and secret will be automatically generated by the library if clientRegistrationOptions.clientIdGeneration is not explicitly set to false. A modified version of the client information can be returned to reflect specific values enforced by the server. * * NOTE: Implementations should NOT delete expired client secrets in-place. Auth middleware provided by this library will automatically check the `client_secret_expires_at` field and reject requests with expired secrets. Any custom logic for authenticating clients should check the `client_secret_expires_at` field as well. * * If unimplemented, dynamic client registration is unsupported. */ registerClient?( - client: Omit + client: Omit & { client_id?: string; client_id_issued_at?: number } ): OAuthClientInformationFull | Promise; }