Skip to content

Commit

Permalink
minor patch on application adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
roncodes committed Jan 16, 2024
1 parent d564170 commit 4282fa8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion addon/adapters/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ export default class ApplicationAdapter extends RESTAdapter {
const localStorageSession = JSON.parse(window.localStorage.getItem('ember_simple_auth-session'));
if (localStorageSession) {
const { authenticated } = localStorageSession;
token = authenticated.token;
if (authenticated) {
token = authenticated.token;
}

// Check isAuthenticated again
isAuthenticated = !!token;
Expand Down

0 comments on commit 4282fa8

Please sign in to comment.