feat: add Medusa Cloud OAuth provider (#14395)
* feat: add Medusa Cloud OAuth provider * add Cloud login button * fetch whether cloud auth is enabled through api * allow unregistered to get session * handle existing users * address PR comments * prevent double execution * a few more fixes * fix callback url * fix spelling * refresh session * 200 instead of 201 * only allow cloud identities to create user * fix condition
This commit is contained in:
@@ -58,6 +58,7 @@ export const authenticate = (
|
||||
actor_type: "api-key",
|
||||
auth_identity_id: "",
|
||||
app_metadata: {},
|
||||
user_metadata: {},
|
||||
}
|
||||
|
||||
return next()
|
||||
|
||||
@@ -198,6 +198,7 @@ export interface AuthContext {
|
||||
actor_type: string
|
||||
auth_identity_id: string
|
||||
app_metadata: Record<string, unknown>
|
||||
user_metadata: Record<string, unknown>
|
||||
}
|
||||
|
||||
export interface PublishableKeyContext {
|
||||
|
||||
Reference in New Issue
Block a user