Add OTP login page and auth guard for client cabinet

This commit is contained in:
Ruslan Bakiev
2026-04-01 19:10:18 +07:00
parent b4537c1483
commit 1c4fd847dc
9 changed files with 605 additions and 1 deletions

View File

@@ -0,0 +1,8 @@
mutation RequestLoginCode($input: RequestLoginCodeInput!) {
requestLoginCode(input: $input) {
challengeToken
channel
destination
expiresAt
}
}

View File

@@ -0,0 +1,12 @@
mutation VerifyLoginCode($input: VerifyLoginCodeInput!) {
verifyLoginCode(input: $input) {
accessToken
expiresAt
user {
id
email
fullName
role
}
}
}