Skip to content

Commit

Permalink
Merge pull request #156 from coding-blocks/single-signin
Browse files Browse the repository at this point in the history
redirect to nuxt url after logout
  • Loading branch information
vdvibhu20 authored Mar 8, 2024
2 parents 8f67bd2 + 4771307 commit dfb81c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/pods/components/login-button/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default class LoginButton extends Component {
}

let timeout = setTimeout (logout, 4000)
const logoutUrl = env.oneauthURL + '/logout?redirect=' + env.publicUrl + 'logout'
const logoutUrl = env.oneauthURL + '/logout?redirect=' + env.nuxtPublicUrl + 'logout'
window.location.href = logoutUrl
}

Expand Down
2 changes: 1 addition & 1 deletion app/services/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default Service.extend({
async invalidate() {
await this.api.request('/jwt/logout').catch(err => console.log(err))
localStorage.setItem('app_flow', 'logout')
window.location.href = `${ENV.oneauthURL}/logout?returnTo=${ENV.publicUrl}`
window.location.href = `${ENV.oneauthURL}/logout?returnTo=${ENV.nuxtPublicUrl}`
},

validate() {
Expand Down

0 comments on commit dfb81c0

Please sign in to comment.