feature: verify tokens

This commit is contained in:
2024-11-17 22:28:29 +05:30
parent 26a00c9f7c
commit 9d40c9d7ec
57 changed files with 4188 additions and 276 deletions

View File

@@ -1,6 +1,18 @@
extend type Mutation {
login(email: String!, pwd: String!): AuthUser!
logout: Boolean!
"""
Verify email token
"""
accountVerifyEmail(token: String): Boolean!
"""
User account login
"""
accountLogin(email: String!, pwd: String!): AuthUser!
"""
User account logout
"""
accountLogout: Boolean!
}
extend type Query {
@@ -8,8 +20,8 @@ extend type Query {
}
type AuthUser {
id: ID!
id: UID!
email: String!
displayName: String!
name: String!
roleID: Int!
}