auth: Moved token and user to models package, added graphql endpoint to check token
the build failed

This commit is contained in:
2018-09-16 16:57:40 +02:00
parent 07b94b3cab
commit 2ab933149e
14 changed files with 206 additions and 120 deletions
+8
View File
@@ -0,0 +1,8 @@
# Token represents the data parsed and validated from the bearer token.
type Token {
# The user represented in the token.
user: User!
# The permissions for the token.
permissions: [String!]!
}
+8
View File
@@ -0,0 +1,8 @@
# A user represents a member on the RPData platform.
type User {
# The user's unique ID / username
id: String!
# What the user is permitted to do.
permissions: [String!]!
}