Fix graphql Queries (#142)

This commit is contained in:
Charles Bochet
2023-05-26 08:33:33 +02:00
committed by GitHub
parent 17f5cf1766
commit 112aa3720b
19 changed files with 93 additions and 102 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ export const getUserIdFromToken: () => string | null = () => {
}
try {
return jwt<{ sub: string }>(accessToken).sub;
return jwt<{ userId: string }>(accessToken).userId;
} catch (error) {
return null;
}