Skip to content

Commit e480970

Browse files
committed
Update auth-api.js
1 parent 39efe45 commit e480970

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/shared/auth-api.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const AUTH_ORIGIN = 'https://demo-bbird-auth.aem-poc-lab.workers.dev';
22
const AUTH_PATHS = {
33
login: '/auth/login',
4+
logout: '/auth/logout',
45
session: '/auth/session',
56
};
67

@@ -24,7 +25,7 @@ export function getLoginUrl(returnTo = window.location.href) {
2425
}
2526

2627
export function getLogoutUrl() {
27-
return authUrl('/auth/logout');
28+
return authUrl(AUTH_PATHS.logout);
2829
}
2930

3031
export async function getSessionState() {

0 commit comments

Comments
 (0)