Revamp the authentication setup (#7419)
* feat: Add email pass authentication provider package * feat: Revamp auth module and remove concept of scope * feat: Revamp the auth module to be more standardized in how providers are loaded * feat: Switch from scope to actor type for authentication * feat: Add support for per-actor auth methods * feat: Add emailpass auth provider by default * fix: Add back app_metadata in auth module
This commit is contained in:
@@ -25,7 +25,6 @@ export const createAuthenticatedCustomer = async (
|
||||
const authIdentity = await authService.create({
|
||||
entity_id: "store_user",
|
||||
provider: "emailpass",
|
||||
scope: "store",
|
||||
})
|
||||
|
||||
// Ideally we simulate a signup process than manually linking here.
|
||||
@@ -45,8 +44,6 @@ export const createAuthenticatedCustomer = async (
|
||||
actor_id: customer.id,
|
||||
actor_type: "customer",
|
||||
auth_identity_id: authIdentity.id,
|
||||
scope: "store",
|
||||
app_metadata: {},
|
||||
},
|
||||
http.jwtSecret
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user