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

Conversation

Projects
None yet
2 participants
@farnabaz
Collaborator

farnabaz commented Apr 20, 2018

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

pi0 approved these changes Apr 20, 2018

@pi0

This comment has been minimized.

Member

pi0 commented Apr 20, 2018

Thanks!

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

@pi0

This comment has been minimized.

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