Skip to content

Commit f977b5d

Browse files
authored
Merge pull request #146 from amam-deriv/amam/update_auth_brand
fix: add brand deriv to signin redirect
2 parents 21afc74 + e3fb083 commit f977b5d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/constants/urls.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export const getOauthUrl = () => {
6060

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

6666
return oauthUrl;

src/oidc/oidc.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,11 @@ export const requestOidcAuthentication = async (options: RequestOidcAuthenticati
131131
postLogoutRedirectUri,
132132
});
133133

134-
await userManager.signinRedirect();
134+
await userManager.signinRedirect({
135+
extraQueryParams: {
136+
brand: "deriv"
137+
},
138+
});
135139
return { userManager };
136140
} catch (error) {
137141
console.error('Authentication failed:', error);

0 commit comments

Comments
 (0)