Skip to content

Commit

Permalink
fix: prod tenant requires explicit realm (#1211)
Browse files Browse the repository at this point in the history
* fix: prod tenant requires explicit realm
* fix[bb]: missing env var
  • Loading branch information
vnugent authored Nov 11, 2024
1 parent bf4c61f commit c7d7181
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ NEXTAUTH_SECRET=vQyFR7gskaqxehN0cI/53r+duWc5Et0ktdoz6KozTCo=
# Auth0 Management API
AUTH0_MGMT_CLIENT_ID=Ecyj4oke3Cpk1khRsdKr8njen6ZZKePF
AUTH0_MGMT_CLIENT_SECRET=send request to hello at openbeta.io
AUTH0_MGMT_CLIENT_AUDIENCE=https://dev-fmjy7n5n.us.auth0.com/api/v2/

######### Client-side vars ############
# Must prefix with NEXT_PUBLIC_in order to expose vars to the browser
Expand Down
3 changes: 2 additions & 1 deletion src/app/api/mobile/login/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ async function postHandler (request: NextRequest): Promise<NextResponse> {
username,
password,
scope: 'openid profile email offline_access',
audience: 'https://api.openbeta.io'
audience: 'https://api.openbeta.io',
realm: 'Username-Password-Authentication'
})

return NextResponse.json({ data: response.data })
Expand Down

0 comments on commit c7d7181

Please sign in to comment.