Skip to content

Commit

Permalink
Fixed notification parameter for create user with OAuth (#1152)
Browse files Browse the repository at this point in the history
  • Loading branch information
ygrik committed Feb 17, 2021
1 parent 54a3531 commit 98f366b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/contracts/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,10 @@ export interface UserPropertiesContract {
* Collection of user identities.
*/
identities?: UserIdentity[];

/**
* Application type. Required to send notification with proper urls in emails.
*
*/
appType: string;
}
5 changes: 3 additions & 2 deletions src/services/usersService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,11 +293,12 @@ export class UsersService {
identities: [{
id: jwtToken.oid,
provider: provider
}]
}],
appType: Constants.AppType
};

const response = await this.httpClient.send({
url: `${managementApiUrl}/users?api-version=${Constants.managementApiVersion}&appType=${Constants.AppType}`,
url: `${managementApiUrl}/users?api-version=${Constants.managementApiVersion}`,
method: "POST",
headers: [
{ name: "Content-Type", value: "application/json" },
Expand Down

0 comments on commit 98f366b

Please sign in to comment.