Skip to content

Commit

Permalink
feat: add user_access_token
Browse files Browse the repository at this point in the history
  • Loading branch information
RaoHai committed Aug 16, 2024
1 parent a6a5140 commit 368307a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/routers/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ async def getAnonymousUser(request: Request, response: Response):

@router.get("/login")
def login():
redirect_uri = f"https://{AUTH0_DOMAIN}/authorize?audience={API_AUDIENCE}&response_type=code&client_id={CLIENT_ID}&redirect_uri={CALLBACK_URL}&scope=openid profile email read:users read:user_idp_tokens&state=STATE"
redirect_uri = f"https://{AUTH0_DOMAIN}/authorize?audience={API_AUDIENCE}&response_type=code&client_id={CLIENT_ID}&redirect_uri={CALLBACK_URL}&scope=openid+profile+email+read%3Ausers+read%3Auser_idp_tokens&state=STATE"
return RedirectResponse(redirect_uri)

@router.get("/callback")
Expand Down

0 comments on commit 368307a

Please sign in to comment.