Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR does two simple things: * look for an 'authToken' field in the sign-in response, and store this as hoodie.account.authToken * send an 'Authorization' header with 'Bearer ' + that token in each request to the hoodie-server. This PR goes together with a PR on the hoodie-server repo, which at the HAPI level, will: * strip the couchdb cookie and add it into the JSON response of signIn requests. * read the Authorization header to look for a token of the form 'Bearer ...', and create a cookie header from the '...', to send to the couchdb layer. set authToken from config at page load fix hoodiehq/hoodie-server#288 (comment) BREAKING CHANGE: Hoodie is not using cookies for authentication anymore and relies on hoodie-server@^2.0.0 * * * This commit was sponsored by The Hoodie Firm. You can hire The Hoodie Firm: http://go.hood.ie/thehoodiefirm
- Loading branch information
1 parent
a2bb612
commit 0726487
Showing
6 changed files
with
67 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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