From 2b38937a170988ae18c56dfeb9bb7dc5b0cf134e Mon Sep 17 00:00:00 2001 From: "aslan.gama" Date: Wed, 18 Sep 2024 13:22:50 -0300 Subject: [PATCH] Auth-six ** version 1.4.5 *** --- package.json | 2 +- src/runtime/plugin.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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