feat: add mutation to generate new jwt secret & keys

Resolves: #150
This commit is contained in:
Lakhan Samani
2022-03-24 19:21:52 +05:30
parent b2541c8e9a
commit 90e2709eeb
6 changed files with 431 additions and 2 deletions

View File

@@ -131,6 +131,12 @@ type ValidateJWTTokenResponse {
is_valid: Boolean!
}
type GenerateJWTKeysResponse {
secret: String
public_key: String
private_key: String
}
input UpdateEnvInput {
ADMIN_SECRET: String
CUSTOM_ACCESS_TOKEN_SCRIPT: String
@@ -296,6 +302,10 @@ input ValidateJWTTokenInput {
roles: [String!]
}
input GenerateJWTKeysInput {
type: String!
}
type Mutation {
signup(params: SignUpInput!): AuthResponse!
login(params: LoginInput!): AuthResponse!
@@ -317,6 +327,7 @@ type Mutation {
_invite_members(params: InviteMemberInput!): Response!
_revoke_access(param: UpdateAccessInput!): Response!
_enable_access(param: UpdateAccessInput!): Response!
_generate_jwt_keys(params: GenerateJWTKeysInput!): GenerateJWTKeysResponse!
}
type Query {