File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
packages/javascript-sdk/src/fr-user Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @forgerock/javascript-sdk ' : patch
3+ ---
4+
5+ fix logic for when we should call session revoke
Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ import TokenManager from '../token-manager';
1818import type { LogoutOptions } from '../oauth2-client/interfaces' ;
1919import Config from '../config' ;
2020import TokenStorage from '../token-storage' ;
21- import { getEndpointPath } from '../util/url' ;
2221
2322/**
2423 * High-level API for logging a user in/out and getting profile information.
@@ -49,9 +48,9 @@ abstract class FRUser {
4948 // Shallow copy options to delete redirect prop
5049 const configOptions = { ...options } ;
5150 delete configOptions . redirect ;
52- const { realmPath , serverConfig } = Config . get ( configOptions ) ;
51+ const { serverConfig } = Config . get ( configOptions ) ;
5352
54- if ( getEndpointPath ( 'sessions' , realmPath , serverConfig . paths ) ) {
53+ if ( ! serverConfig . paths || ( serverConfig . paths && 'sessions' in serverConfig . paths ) ) {
5554 // Just log any exceptions that are thrown, but don't abandon the flow
5655 try {
5756 // Both invalidates the session on the server AND removes browser cookie
You can’t perform that action at this time.
0 commit comments