Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: OAuth - Custom Parameter #297

Open
Droppix opened this issue Nov 30, 2024 · 0 comments
Open

Question: OAuth - Custom Parameter #297

Droppix opened this issue Nov 30, 2024 · 0 comments

Comments

@Droppix
Copy link

Droppix commented Nov 30, 2024

Hi,

Is it possible to pass a custom parameter during OAuth authentication and retrieve it on the server side?

cf:

---> 
/api/auth/google?myparam=1234
-->
export default defineOAuthGoogleEventHandler({
    config: {
        emailRequired: true,
    },
    async onSuccess(event, { user }) {
        const query = getQuery(event)
        // How get ---> query.myparam ???
    }
}

Thks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant