feat(server): add is_valid_jwt query

This commit is contained in:
Lakhan Samani
2022-01-24 00:32:06 +05:30
parent 7f18a3f634
commit 87b1cac979
10 changed files with 465 additions and 52 deletions

View File

@@ -63,6 +63,11 @@ type ForgotPasswordInput struct {
Email string `json:"email"`
}
type IsValidJWTQueryInput struct {
Jwt string `json:"jwt"`
Roles []string `json:"roles"`
}
type LoginInput struct {
Email string `json:"email"`
Password string `json:"password"`
@@ -99,6 +104,10 @@ type Response struct {
Message string `json:"message"`
}
type SessionQueryInput struct {
Roles []string `json:"roles"`
}
type SignUpInput struct {
Email string `json:"email"`
GivenName *string `json:"given_name"`
@@ -197,6 +206,11 @@ type User struct {
UpdatedAt *int64 `json:"updated_at"`
}
type ValidJWTResponse struct {
Valid bool `json:"valid"`
Message string `json:"message"`
}
type VerificationRequest struct {
ID string `json:"id"`
Identifier *string `json:"identifier"`