Skip to content

Support "state" parameter #50

Open
@JannikZed

Description

@JannikZed

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:

Image

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions