Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Need to add custom endpoints for /me and /refresh-token ? #12

Answered by CrawlerCode
tago-SE asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for your contribution.

I already implemented a custom /me endpoint, but it was only registering when you using a virtual field and there was another error with the exp value. Now both should be fixed.

Yes, you are right, i need to register a custom /refresh-token endpoint to refresh the Auth.js session. It is also included in the new version v0.7.1.

The useAuth hook from payload can be used in the admin panel as mentioned in the payload documentation. With a few tweaks you can also use it in your own application, but I would not recommend this. If you have a specific problem with this, please open an issue and provide more informations.

And finally, now i offer a usePayloadSession …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by tago-SE
Comment options

You must be logged in to vote
1 reply
@CrawlerCode
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
2 participants