Skip to content

Commit

Permalink
fix: add brand deriv to signin redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
amam-deriv committed Jan 29, 2025
1 parent 21afc74 commit e3fb083
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/constants/urls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const getOauthUrl = () => {

const oauthUrl =
appId && serverUrl
? `https://${serverUrl}/oauth2/authorize?app_id=${appId}&l=${lang ?? 'EN'}&&brand=deriv`
? `https://${serverUrl}/oauth2/authorize?app_id=${appId}&l=${lang ?? 'EN'}&brand=deriv`
: URLUtils.getOauthURL();

return oauthUrl;
Expand Down
6 changes: 5 additions & 1 deletion src/oidc/oidc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,11 @@ export const requestOidcAuthentication = async (options: RequestOidcAuthenticati
postLogoutRedirectUri,
});

await userManager.signinRedirect();
await userManager.signinRedirect({
extraQueryParams: {
brand: "deriv"
},
});
return { userManager };
} catch (error) {
console.error('Authentication failed:', error);
Expand Down

0 comments on commit e3fb083

Please sign in to comment.