feature: verify tokens
This commit is contained in:
@@ -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!
|
||||
}
|
||||
|
Reference in New Issue
Block a user