Loading...
Was this page helpful?
This documentation provides a reference to the authenticate
method. This belongs to the Auth Module.
This method is used to authenticate a user using a provider. The authenticate
method of the
underlying provider is called, passing it the providerData
parameter as a parameter. The method
returns the data returned by the provider.
Refer to this guide to learn more about the authentication flows.
The following example is in the context of an API route, where
req
is an instance of the MedusaRequest
object:
provider
stringproviderData
AuthenticationInputPromise
Promise<AuthenticationResponse>