Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
fix: business bceid idp hint value (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricardo Campos authored Dec 22, 2022
1 parent 0eb8182 commit 19678f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/types/LoginProviders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/
enum LoginProviders {
IDIR = 'idir',
BCEID_BUSINESS = 'bceid-business'
BCEID_BUSINESS = 'bceidbusiness'
}

export default LoginProviders;
3 changes: 1 addition & 2 deletions src/views/Landing/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@ const Landing = () => {
return;
}

const idpHint = provider === 'idir' ? 'idir' : 'bceid-business';
const loginOptions: KeycloakLoginOptions = {
redirectUri: `${window.location.origin}/home`,
idpHint
idpHint: provider
};

login(loginOptions);
Expand Down

0 comments on commit 19678f5

Please sign in to comment.