This repository was archived by the owner on Mar 22, 2022. It is now read-only.
Repository navigation
Manually supply an endpoint to the Client authenticate() method - #278
Merged
Merged
Conversation
…ookTokenStrategy auth
Member
|
This looks good to me. Do you mind making a PR for the docs and we can merge them both at the same time? |
Contributor
Author
|
No problem @marshallswain - I've just submitted a PR. Hope it's ok :) |
Contributor
Author
|
I've also added a |
Member
|
I think this looks great, thank you @mcnamee! Looks like JSHint is failing on CI at the moment ( |
Contributor
Author
|
@daffl - sorry for wasting your time, I should have tested sooner! |
Member
|
No worries. Thanks a lot for the PR! Released in 0.7.10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
By simply providing the ability to specify the endpoint in the client authenticate method, it allows the ability for mobile users to authenticate via a native mobile Facebook SDK for example, and then post that Facebook access_token to Feathers to do it's thing via the FacebookTokenStrategy method.
eg. from react-native, I've just authenticated natively via the Facebook SDK, which has given me an access token: