re-implemented JWT auth
This commit is contained in:
parent
c190d368de
commit
b47b0f3752
18 changed files with 390 additions and 174 deletions
|
|
@ -6,13 +6,9 @@ type Query {
|
|||
}
|
||||
|
||||
type Mutation {
|
||||
login(input: LoginInput!): Session!
|
||||
signUp(input: SignUpInput!): Void
|
||||
}
|
||||
|
||||
input LoginInput {
|
||||
email: String!
|
||||
password: String!
|
||||
login(input: LoginInput!): Session!
|
||||
logout: Void
|
||||
}
|
||||
|
||||
input SignUpInput {
|
||||
|
|
@ -21,16 +17,13 @@ input SignUpInput {
|
|||
password: String!
|
||||
}
|
||||
|
||||
type Session {
|
||||
accessToken: String!
|
||||
input LoginInput {
|
||||
email: String!
|
||||
password: String!
|
||||
}
|
||||
|
||||
type RefreshToken {
|
||||
token: String!
|
||||
maxAge: Int!
|
||||
secure: Boolean!
|
||||
httpOnly: Boolean!
|
||||
sameSite: String!
|
||||
type Session {
|
||||
accessToken: String!
|
||||
}
|
||||
|
||||
type Book {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue