A
Auth google
Google OAuth authentication provider for Medusa
Входит в @medusajs/medusa, ставить отдельно не нужно
Категория
Создано
Версия
2.22.4
Последнее обновление
7 часов назад
Ежемесячные загрузки
Загрузка данных
@medusajs/auth-google
Documentation | Website
Building blocks for digital commerce
Google Auth Module Provider for Medusa: lets users and customers log in with their Google account through OAuth 2. Use it to add "Log in with Google" for customers, admin users, or custom actor types. It ships with and is registered through the path.
At a glance
| Package | |
| Type | Module Provider (Auth Module) |
| Provider ID | |
| Registered by default | No |
| Import from |
Installation
No installation needed. The provider is a dependency of .
Usage
Register the provider in the Auth Module's array in . Passing replaces the default list, so keep if you still need email/password login:
The provider's is the one used in authentication routes, such as .
Configuration
| Option | Type | Description | Default |
|---|---|---|---|
| Required. The OAuth client ID of your Google app. | - | ||
| Required. The OAuth client secret of your Google app. | - | ||
| Required. The URL Google redirects to after authentication. Can be overridden per request with a body parameter. | - |
| Environment variable | Description |
|---|---|
| Value for , as used in the example above. | |
| Value for , as used in the example above. | |
| Value for , as used in the example above. |

