Skip to content

Commit

Permalink
Auth-six
Browse files Browse the repository at this point in the history
** version 1.4.5 ***
  • Loading branch information
aslan.gama committed Sep 18, 2024
1 parent 97b46da commit 2b38937
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nuxt-simple-auth",
"version": "1.4.4",
"version": "1.4.5",
"description": "Authentication module simple for Nuxt.js",
"repository": "https://github.com/4sllan/nuxt-simple-auth",
"author": "Aslan Gama <@4slan>",
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default defineNuxtPlugin(async (nuxtApp) => {

if (response) {
this.$headers.set('authorization', response.token)
this._state = {user: response.profile, loggedIn: true, strategy: response.type}
this._state = {user: response.profile, loggedIn: true, strategy: response.strategyName}
this._user = this._state.user
this._strategy = this._state.strategy
this._loggedIn = this._state.loggedIn
Expand Down

0 comments on commit 2b38937

Please sign in to comment.