Открыта бета 1С:ПредприятияОставить заявку
A

Auth google

Google OAuth authentication provider for Medusa

Входит в @medusajs/medusa, ставить отдельно не нужно
Категория
Создано
Версия
2.22.4
Последнее обновление
7 часов назад
Ежемесячные загрузки
Загрузка данных

Medusa logo

@medusajs/auth-google

Documentation | Website

Building blocks for digital commerce

Medusa is released under the MIT license. PRs welcome! Discord Chat Follow @medusajs

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
TypeModule Provider (Auth Module)
Provider ID
Registered by defaultNo
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

OptionTypeDescriptionDefault
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 variableDescription
Value for , as used in the example above.
Value for , as used in the example above.
Value for , as used in the example above.

Resources