You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 22, 2022. It is now read-only.
Since Feathers is isomorphic we should follow a similar convention to some of our other libs and expose a client side portion.
Auth can get pretty complicated. We don't need to go so far as implementing everything Auth0's Lock provides but it would be nice to have something that at a minimum provides:
a mechanism for managing storing a valid token (ie. localStorage)
handling a 401 error
refreshing tokens
refreshing and storing the logged-in user's data
exposes a client side hook for adding the token to the header or socket body
handles pulling the JWT from the feathers-jwt cookie after successful OAuth authentication
Things that need to happen to work on this
Add header support for feathers REST client
Fix providers to work with new params format
REST
socket.io
primus
Add ability to determine which providers are enabled in the client
REST
socket.io
primus
Pass params.query instead of params into makeUrl (see this)
Add a default service hook if feathers authentication is enabled that attempts to grab the JWT from local storage (falling back to cookie) and stores it on hook.params.token
allow configuring some custom options for client side feathers-authentication module
a custom user endpoint (default is /users)
a custom auth header field (default is Authorization)
custom token endpoint (default is /auth/token)
custom local auth endpoint (default is /auth/local)
The text was updated successfully, but these errors were encountered:
Since Feathers is isomorphic we should follow a similar convention to some of our other libs and expose a client side portion.
Auth can get pretty complicated. We don't need to go so far as implementing everything Auth0's Lock provides but it would be nice to have something that at a minimum provides:
feathers-jwt
cookie after successful OAuth authenticationThings that need to happen to work on this
params.query
instead ofparams
intomakeUrl
(see this)hook.params.token
feathers-authentication
module/users
)Authorization
)/auth/token
)/auth/local
)The text was updated successfully, but these errors were encountered: