factory:AuthProviderClientFactory<UserApiKeyAuthProviderClient> = new classimplements AuthProviderClientFactory<UserApiKeyAuthProviderClient> {public getClient(authRequestClient: StitchAuthRequestClient,requestClient: StitchRequestClient, // This arg is ignoredroutes: StitchAuthRoutes): UserApiKeyAuthProviderClient {return new UserApiKeyAuthProviderClientImpl(authRequestClient, routes);}}()
Methods
createApiKey
createApiKey(name: string): Promise<UserApiKey>
Creates a user API key that can be used to authenticate as the current user.
Parameters
name: string
the name of the API key to be created.
Returns Promise<UserApiKey>
deleteApiKey
deleteApiKey(keyId: BSON.ObjectID): Promise<void>
Deletes a user API key associated with the current user.
UserApiKeyAuthProviderClient
A client for creating, updating, and deleting the API keys of a Stitch user.