We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 917c80e commit f60ca3eCopy full SHA for f60ca3e
2 files changed
src/app/api/mobile/logout/route.ts
@@ -21,7 +21,7 @@ async function verifyAccessToken (request: NextRequest): Promise<boolean> {
21
try {
22
await jwtVerify(token, JWKS, {
23
issuer: issuer + '/',
24
- audience: 'https://api.openbeta.io/'
+ audience: 'https://api.openbeta.io'
25
})
26
return true
27
} catch {
src/js/auth/withUserAuth.ts
@@ -41,8 +41,8 @@ export const withUserAuth = (handler: Next13APIHandler): Next13APIHandler => {
41
const { payload } = await jwtVerify(token, JWKS, {
42
43
audience: [
44
- 'https://api.openbeta.io/', // Access token (web)
45
- clientId // ID token (mobile client ID)
+ 'https://api.openbeta.io', // Access token (no trailing slash)
+ clientId // ID token
46
]
47
48
0 commit comments