clerk / clerk-docs

The documentation content for Clerk, an authentication and user management platform.
https://clerk.com/docs
79 stars 285 forks source link

(/guides/add-onboarding-flow) Add code comment that explains user.reload() #1212

Closed abeisleem closed 3 days ago

abeisleem commented 4 days ago

[!IMPORTANT] 🔎 Previews:

  • add-onboarding-flow.mdx

Explanation:

It not easy to notice that developers should call user.reload() on the frontend after updating the user's publicMetadata on the backend when following the guide Add custom onboarding to your authentication flow. Making that call is a necessary part of the logic and has security implication depending on the use-case.

Discord issue: https://discord.com/channels/856971667393609759/1253768303483162644

This PR:

abeisleem commented 4 days ago

cc: @JacobMGEvans

alexisintech commented 4 days ago

Please remove the callout and update the comment :)

abeisleem commented 3 days ago

@alexisintech, thanks for you input :) All suggestions are implemented.

alexisintech commented 3 days ago

awesome change - thank you so much for pointing this out @abeisleem