Auth-module: Where did the token property go?

Created on 24 Jun 2020  路  2Comments  路  Source: nuxt-community/auth-module


Hi!
I updated package.json and now getting error when trying to get token

2020-06-24_17-27-59
2020-06-24_17-27-24

I tried to fix this by returning to the previous version ("@ nuxtjs / auth-next": "^ 5.0.0-1590092757.1671dba"). But it did not help.
Then I climbed into the module. But in the constructor Auth did not find the "token" property

2020-06-24_17-17-30

And before it was

2020-06-24_17-22-41

How now to access the value of the token property?

Most helpful comment

Hi @antonsmolko! Now the token instance is initialized inside scheme. You can access it using this.$auth.strategy.token.get().

Note: This might change in a future release.

All 2 comments

Hi @antonsmolko! Now the token instance is initialized inside scheme. You can access it using this.$auth.strategy.token.get().

Note: This might change in a future release.

Thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sebmor picture sebmor  路  3Comments

manniL picture manniL  路  4Comments

pi0 picture pi0  路  3Comments

ishitatsuyuki picture ishitatsuyuki  路  4Comments

AhmedAtef07 picture AhmedAtef07  路  3Comments