Skip to content
This repository has been archived by the owner on Apr 23, 2019. It is now read-only.

Custom jwt strategy names #8

Merged
merged 2 commits into from
Nov 22, 2016
Merged

Custom jwt strategy names #8

merged 2 commits into from
Nov 22, 2016

Conversation

ekryski
Copy link
Member

@ekryski ekryski commented Nov 22, 2016

Summary

Adding support on the client so that you use a custom JWT strategy name. This allows you to support multiple JWT auth strategies on the server side like so:

.configure(jwt({
  name: 'jwt',
  entity: 'user',
  service: 'users'
}))
.configure(jwt({
  name: 'jwt-device',
  entity: 'device',
  service: 'devices'
}));

@corymsmith
Copy link
Contributor

This looks good to me since I know exactly why we need this :) :shipit:

@ekryski ekryski merged commit b2e0ed6 into master Nov 22, 2016
@ekryski ekryski deleted the custom-jwt-strategy-names branch November 22, 2016 20:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants