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

fix: customAuthHook update REST response #1459

Conversation

taytzehao
Copy link

What kind of change does this PR introduce?

The AuthTokenResponse REST response would be updated with data that is modified by the custom access auth hook.

What is the current behavior?

AuthTokenResponse REST response is not updated with data in the custom access auth hook token. #1415

What is the new behavior?

The User_metadata in User data of the REST response is in sync user_metadata in the access token provided

Additional context

Add any other context or screenshots.

@taytzehao taytzehao requested a review from a team as a code owner February 27, 2024 16:56
@taytzehao taytzehao changed the title 1415 customAuthHook update REST response fix: customAuthHook update REST response Feb 28, 2024
@tzehaoo
Copy link

tzehaoo commented Feb 28, 2024

@hf

@tzehaoo
Copy link

tzehaoo commented Mar 8, 2024

@kangmingtay , could you or somebody else please help review this PR?

@hf
Copy link
Contributor

hf commented Mar 18, 2024

Custom Access Token Hook cannot be used to modify the user metadata, which is common with other similar features in other authentication software. There will be a different hook in the future where you could change the user metadata "before sign up" for example.

Custom Access Token hook is therefore not connected to the REST response, as it modifies the access token not the User object.

@hf hf closed this Mar 18, 2024
@hf
Copy link
Contributor

hf commented Mar 18, 2024

Thank you for the contribution, though! Please don't feel discouraged to contribute again!

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

Successfully merging this pull request may close these issues.

3 participants