Skip to content

Commit 709c8cc

Browse files
committed
feat(admin-auth-me): use admin user profile endpoint for Admin
1 parent 3b4a20e commit 709c8cc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/client.js

+4
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,16 @@ class StitchClient {
2626
if (options && options.baseUrl) {
2727
baseUrl = options.baseUrl;
2828
}
29+
2930
this.appUrl = `${baseUrl}/api/public/v1.0`;
3031
this.authUrl = `${baseUrl}/api/public/v1.0/auth`;
32+
this.profileUrl = `${baseUrl}/api/public/v1.0/auth/me`;
3133
if (clientAppID) {
3234
this.appUrl = `${baseUrl}/api/client/v1.0/app/${clientAppID}`;
3335
this.authUrl = `${this.appUrl}/auth`;
36+
this.profileUrl = `${this.appUrl}/auth/me`;
3437
}
38+
3539
this.authManager = new Auth(this.authUrl);
3640
this.authManager.handleRedirect();
3741
this.authManager.handleCookie();

0 commit comments

Comments
 (0)