You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Login by net_id; returns access_token and refresh_token.
227
+
"""
228
+
loginUser("User's net ID (e.g. Cornell netid)."netId: String!): LoginUser
229
+
230
+
"""
231
+
Create a new user by net_id; returns access_token and refresh_token (no separate login needed).
232
+
"""
233
+
signupUser("Email address."email: String, "Display name."name: String, "User's net ID (e.g. Cornell netid)."netId: String!): SignupUser
234
+
235
+
"""
236
+
Exchange a valid refresh token (in Authorization header) for a new access_token.
237
+
"""
238
+
refreshAccessToken: RefreshAccessToken
239
+
240
+
"""
241
+
Revoke the current token (access or refresh). Send token in Authorization header.
242
+
"""
243
+
logoutUser: LogoutUser
244
+
245
+
"""
246
+
Add a game to the current user's favorites (requires auth).
247
+
"""
248
+
addFavoriteGame("ID of the game to add to favorites."gameId: String!): AddFavoriteGame
249
+
250
+
"""
251
+
Remove a game from the current user's favorites (requires auth).
252
+
"""
253
+
removeFavoriteGame("ID of the game to remove from favorites."gameId: String!): RemoveFavoriteGame
204
254
}
205
255
206
256
typeCreateGame {
@@ -219,6 +269,34 @@ type CreateArticle {
219
269
article: ArticleType
220
270
}
221
271
272
+
typeLoginUser {
273
+
accessToken: String
274
+
275
+
refreshToken: String
276
+
}
277
+
278
+
typeSignupUser {
279
+
accessToken: String
280
+
281
+
refreshToken: String
282
+
}
283
+
284
+
typeRefreshAccessToken {
285
+
newAccessToken: String
286
+
}
287
+
288
+
typeLogoutUser {
289
+
success: Boolean
290
+
}
291
+
292
+
typeAddFavoriteGame {
293
+
success: Boolean
294
+
}
295
+
296
+
typeRemoveFavoriteGame {
297
+
success: Boolean
298
+
}
299
+
222
300
"""
223
301
A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation and subscription operations.
0 commit comments