feat: unify email & mobile singup + login

This commit is contained in:
Lakhan Samani
2023-10-22 02:33:36 +05:30
parent 734e54db69
commit 3ed31b0557
25 changed files with 377 additions and 243 deletions

View File

@@ -306,6 +306,7 @@ input AdminSignupInput {
admin_secret: String!
}
# Deprecated with v1.2.0
input MobileSignUpInput {
email: String
given_name: String
@@ -330,7 +331,7 @@ input MobileSignUpInput {
}
input SignUpInput {
email: String!
email: String
given_name: String
family_name: String
middle_name: String
@@ -353,7 +354,8 @@ input SignUpInput {
}
input LoginInput {
email: String!
email: String
phone_number: String
password: String!
roles: [String!]
scope: [String!]
@@ -363,6 +365,7 @@ input LoginInput {
state: String
}
# Deprecated with v1.2.0
input MobileLoginInput {
phone_number: String!
password: String!
@@ -574,8 +577,10 @@ input GetUserRequest {
type Mutation {
signup(params: SignUpInput!): AuthResponse!
# Deprecated with v1.2.0
mobile_signup(params: MobileSignUpInput): AuthResponse!
login(params: LoginInput!): AuthResponse!
# Deprecated with v1.2.0
mobile_login(params: MobileLoginInput!): AuthResponse!
magic_link_login(params: MagicLinkLoginInput!): Response!
logout: Response!