ViZhe / koa-server-example

Base Koa server with graphql jwt auth

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AUTH

Mutation

SignUp

mutation SignupMutation($email: String!, $password: String!) {
  signUp(email: $email, password: $password) {
    token
    user {
      id
      email
    }
  }
}

LogIn

mutation LoginMutation($email: String!, $password: String!) {
  logIn(email: $email, password: $password) {
    token
    user {
      id
      email
    }
  }
}

Recovery

mutation RecoveryMutation($email: String!) {
  recovery(email: $email) {
    isSend
  }
}

About

Base Koa server with graphql jwt auth


Languages

Language:TypeScript 99.1%Language:JavaScript 0.9%