Skip to content

Commit

Permalink
Merge pull request #239 from schibsted/update-schibsted-account-path
Browse files Browse the repository at this point in the history
Update Schibsted Account path
  • Loading branch information
kamilwiniarski authored Jan 30, 2023
2 parents 0ae155c + b3facdb commit 89a6672
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions __tests__/identity.js
Original file line number Diff line number Diff line change
Expand Up @@ -726,8 +726,8 @@ describe('Identity', () => {
const redirects = [undefined, 'http://other.example.com'];
describe.each(redirects)(`redirect='%s'`, (redirect) => {
const urlFunctions = [
['accountUrl', '/account/summary'],
['phonesUrl', '/account/phones'],
['accountUrl', '/profile-pages'],
['phonesUrl', '/profile-pages/about-you/phone'],
];
test.each(urlFunctions)('%s -> %s', (func, pathname) => {
const identity = new Identity(defaultOptions);
Expand Down
4 changes: 2 additions & 2 deletions src/identity.js
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ export class Identity extends EventEmitter {
* @return {string}
*/
accountUrl(redirectUri = this.redirectUri) {
return this._spid.makeUrl('account/summary', {
return this._spid.makeUrl('profile-pages', {
response_type: 'code',
redirect_uri: redirectUri
});
Expand All @@ -834,7 +834,7 @@ export class Identity extends EventEmitter {
* @return {string}
*/
phonesUrl(redirectUri = this.redirectUri) {
return this._spid.makeUrl('account/phones', {
return this._spid.makeUrl('profile-pages/about-you/phone', {
response_type: 'code',
redirect_uri: redirectUri
});
Expand Down

0 comments on commit 89a6672

Please sign in to comment.