feat(react,nextjs): expose getIdToken API#309
Conversation
|
Since there didn’t seem to be any active work on this issue, I took the liberty of drafting a PR. It turns out that AuthAPI already exposes a getIdToken() method, so this change simply wires it through and exposes getIdToken() from the React SDK. Please let me know if you’d like me to update the documentation as well, or if there are any changes you’d like to see in the implementation. Thanks, and happy new year! 🎉 |
Hey @TharakaUJ, Thanks a lot for taking the time for the contribution & wish you a very happy new year as well. Couple of things:
|
this commit expose the getIdToken from the AsgardeoContext so it can be accessed via useAsgardeo
|
Also I noticed that there is a conflict in |
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. |
|
LGTM! Merged. Thanks @TharakaUJ for your contribution 🙌 |


this commit introduces the getIdToken method to both AsgardeoReactClient and AsgardeoNextClient classes.
Purpose
Related Issues
idTokenfrom the SDK #249Related PRs
Checklist
Security checks