Add OTP login page and auth guard for client cabinet
This commit is contained in:
8
graphql/operations/auth/request-login-code.graphql
Normal file
8
graphql/operations/auth/request-login-code.graphql
Normal file
@@ -0,0 +1,8 @@
|
||||
mutation RequestLoginCode($input: RequestLoginCodeInput!) {
|
||||
requestLoginCode(input: $input) {
|
||||
challengeToken
|
||||
channel
|
||||
destination
|
||||
expiresAt
|
||||
}
|
||||
}
|
||||
12
graphql/operations/auth/verify-login-code.graphql
Normal file
12
graphql/operations/auth/verify-login-code.graphql
Normal file
@@ -0,0 +1,12 @@
|
||||
mutation VerifyLoginCode($input: VerifyLoginCodeInput!) {
|
||||
verifyLoginCode(input: $input) {
|
||||
accessToken
|
||||
expiresAt
|
||||
user {
|
||||
id
|
||||
email
|
||||
fullName
|
||||
role
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user