mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 12:12:53 +00:00
mock user service
This commit is contained in:
@@ -23,11 +23,11 @@ describe("/passkey/login", () => {
|
||||
});
|
||||
|
||||
removeStub(
|
||||
"zitadel.user.v2alpha.SessionService",
|
||||
"zitadel.user.v2alpha.UserService",
|
||||
"ListAuthenticationMethodTypes"
|
||||
);
|
||||
addStub(
|
||||
"zitadel.user.v2alpha.SessionService",
|
||||
"zitadel.user.v2alpha.UserService",
|
||||
"ListAuthenticationMethodTypes",
|
||||
{
|
||||
authMethodTypes: [1], // 1 for password authentication
|
||||
@@ -62,11 +62,11 @@ describe("/passkey/login", () => {
|
||||
});
|
||||
|
||||
removeStub(
|
||||
"zitadel.user.v2alpha.SessionService",
|
||||
"zitadel.user.v2alpha.UserService",
|
||||
"ListAuthenticationMethodTypes"
|
||||
);
|
||||
addStub(
|
||||
"zitadel.user.v2alpha.SessionService",
|
||||
"zitadel.user.v2alpha.UserService",
|
||||
"ListAuthenticationMethodTypes",
|
||||
{
|
||||
authMethodTypes: [2], // 2 for passwordless authentication
|
||||
|
||||
Reference in New Issue
Block a user