Skip to content

Commit

Permalink
Admin server: Support different OIDC response_types
Browse files Browse the repository at this point in the history
  • Loading branch information
VojtaStanek authored Feb 15, 2022
1 parent b297f0e commit 34937c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/admin/src/components/Login/LoginEntrypoint.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ const LoginContainer = ({ identityProviders }: {

const hasOauthResponse = useMemo(() => {
const params = new URLSearchParams(window.location.search)
return params.has('state') && params.has('code') && params.has('scope')
return params.has('state') && (params.has('code') || params.has('id_token'))
}, [])

if (hasOauthResponse) {
Expand Down

0 comments on commit 34937c4

Please sign in to comment.