-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Return other_uid
in auth headers and encode in bearer token
#1583
Comments
Just curious but what is the purpose of |
I would need to identify this for users that have the same email address... will this be added to the auth headers? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Devise Token Auth provides a way to specify your own
uid
column. This column is respected when setting the current resource, however we do not expose this field in the auth headers (or encode it in the bearer token as a result).Within
DeviseTokenAuth::Concerns::User
(particularly this method) I believe we should also return the custom uid in the headers so it can then be used by the client to store/reference after successful login or registration.The text was updated successfully, but these errors were encountered: