Open
Description
Hi there,
We currently check, what would need to be done, to use this plugin also in custom login components on the frontend side (like:

basically, we just need a flexible way to forward to different pages, not just /admin - the successRedirect needs to be dynamic. - So how to get that dynamic? One option would be to use the official oauth "state" parameter and use it to hand over a redirect URL that we can make use of in the successRedirect.
I think we just need to add the hand over in this file: https://github.com/WilsonLe/payload-oauth2/blob/main/src/authorize-endpoint.ts
Metadata
Metadata
Assignees
Labels
No labels