Skip to content

Commit

Permalink
[@dhealthdapps/frontend] fix(screens): update fetch access token para…
Browse files Browse the repository at this point in the history
…ms for login screen
  • Loading branch information
kravchenkodhealth authored and evias committed Jan 4, 2023
1 parent 11b9ced commit 91ccc5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion runtime/dapp-frontend-vue/src/services/AuthService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export class AuthService extends BackendService {
*/
public async login(
challenge: string,
registry: string,
refCode: string | undefined = undefined
): Promise<AccessTokenDTO> {
// request an access token for authenticated users
Expand All @@ -98,7 +99,7 @@ export class AuthService extends BackendService {
const response = await this.handler.call(
this.getUrl("auth/token"),
"POST",
{ challenge, referralCode: refCode },
{ challenge, registry, referralCode: refCode },
{ withCredentials: true, credentials: "include" }
// no-headers
);
Expand Down

0 comments on commit 91ccc5a

Please sign in to comment.