Authenticate
Last edit: Oct 26, 2022
No description
type Authenticate {
jwt(algorithm: JwtAlgorithm = HS256, token: String!): Boolean!
otp_code(code: String!, drift: Int): Boolean!
password(password: String!): Boolean!
temporary_token(token: String!): Boolean!
}
Fields
jwt
(Boolean
)
returns true if the provided JWT is valid for the given user and has not expired yet
-
algorithm
(JwtAlgorithm
) -
token
(String
)
otp_code
(Boolean
)
validates otp_code
-
code
(String
)
OTP code sent to user
-
drift
(Int
)
Allowed TOTP time drift between client and server
password
(Boolean
)
plain text password which will be matched against stored encrypted_password. Returns true if password matches.
-
password
(String
)
temporary_token
(Boolean
)
returns true if the provided temporary_token is valid for the given user and has not expired yet
-
token
(String
)