diff --git a/package.json b/package.json index c06d827..8147d01 100644 --- a/package.json +++ b/package.json @@ -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>", diff --git a/src/runtime/plugin.ts b/src/runtime/plugin.ts index 2f3826a..8e18663 100644 --- a/src/runtime/plugin.ts +++ b/src/runtime/plugin.ts @@ -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