Skip to content
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

Open
benkovy opened this issue Mar 18, 2023 · 2 comments
Open

Return other_uid in auth headers and encode in bearer token #1583

benkovy opened this issue Mar 18, 2023 · 2 comments

Comments

@benkovy
Copy link

benkovy commented Mar 18, 2023

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.

@mickamy
Copy link

mickamy commented May 23, 2023

Just curious but what is the purpose of other_id, or should I say what is the use-cases of it?
Isn't just a uid is not enought?

@bettysteger
Copy link
Contributor

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants