Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Token Type is not well documented on website and you have to use other property to see changes. #1821

Open
4 of 5 tasks
wibrvallejoma opened this issue Jan 18, 2023 · 0 comments
Labels

Comments

@wibrvallejoma
Copy link

Version

module:
nuxt:

Nuxt configuration

mode:

  • universal
  • spa

Nuxt configuration

Reproduction

⚠️ without a minimal reproduction we won't be able to look into your issue

What is expected?

What is actually happening?

Documentation for Nuxt Auth is completely wrong. In the website it says that you have to configure the following

  auth: {
    strategies: {
      local: {
        token: {
          required: true,
          global: true,
         type: 'Bearer'
        },

But if you want to change Bearer to Token or JWT it does not work at all...
And under the documentation it does not say how to add different values, it only shows the "default" value. I have to deep dive to the issue going to the installed library and do the following;

  auth: {
    strategies: {
      local: {
        tokenType: 'JWT',

Why would you add a property called tokenType if you already have the property token.type?
Also, the documentation does not have any information about this.

Steps to reproduce

Just use the configuration that I'm using and you will see that "options" truly change with my solution

Additional information

Checklist

  • I have tested with the latest Nuxt version and the issue still occurs
  • I have tested with the latest module version and the issue still occurs
  • I have searched the issue tracker and this issue hasn't been reported yet

Steps to reproduce

What is expected?

What is actually happening?

Performance analysis?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant