on GitHub" data-tooltip-id=":R1blcldb:">v2.5.1·Edited Oct 8·
In this document, you’ll learn how the Auth Module handles authentication using providers.
An auth module provider handles authenticating customers and users, either using custom logic or by integrating a third-party service.
For example, the EmailPass Auth Module Provider authenticates a user using their email and password, whereas the Google Auth Module Provider authenticates users using their Google account.
By default, users of all actor types can authenticate with all installed auth module providers.
To restrict the auth providers used for actor types, use the authMethodsPerActor option in Medusa's configurations:
authMethodsPerActor
configuration, it overrides the default. So, if you don't specify any providers for an actor type, users of that actor type can't authenticate with any provider.Refer to this guide to learn how to create an auth module provider.