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

Add support for custom token key in request header #152

Merged
merged 1 commit into from
Apr 20, 2018
Merged

Add support for custom token key in request header #152

merged 1 commit into from
Apr 20, 2018

Conversation

farnabaz
Copy link
Member

Sometimes we need to change token key name in requests header, in order to support custom token name we could define new option in local strategy. lets call it tokenName

    auth: {
        strategies: {
            local: {
                tokenName: 'x-auth',
                endpoints: ...
            }
        }
    }

@pi0
Copy link
Member

pi0 commented Apr 20, 2018

Thanks!

@pi0 pi0 merged commit f7576e3 into nuxt-community:dev Apr 20, 2018
@pi0
Copy link
Member

pi0 commented Apr 20, 2018

Shipped in 4.2.0

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

Successfully merging this pull request may close these issues.

2 participants