Skip to content

feat: add support for authorization parameters and ensure state param is included from query when present in Facebook & Microsoft OAuth #386

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

Merged
merged 10 commits into from
Apr 7, 2025

Conversation

mendrinos
Copy link
Contributor

  • Added support for the state parameter in the Facebook OAuth configuration.
  • Encoded the state parameter as a JSON string to allow custom data to be passed (e.g., redirect subdomain).

…dates

- Added support for the `state` parameter in the Facebook OAuth configuration.
  - The `state` parameter is now included in the runtime configuration under `oauth.facebook`.
  - Encoded the `state` parameter as a JSON string to allow custom data to be passed (e.g., redirect subdomain).
Copy link

pkg-pr-new bot commented Apr 3, 2025

Open in StackBlitz

npm i https://pkg.pr.new/atinux/nuxt-auth-utils@386

commit: 745fc0f

autofix-ci bot and others added 4 commits April 3, 2025 16:19
- Removed unnecessary `JSON.stringify` as `config.state` is expected to be a string.
- Simplified the conditional check to include `state` only if it is truthy.
- Ensured the `state` parameter is URL-encoded for safety.
@mendrinos mendrinos changed the title feat: add Facebook OAuth state parameter feat: add support for custom authorization parameters in Facebook OAuth Apr 4, 2025
@mendrinos mendrinos changed the title feat: add support for custom authorization parameters in Facebook OAuth feat: add support for authorization parameters and ensure state param is included from query when present in Facebook OAuth Apr 5, 2025
@mendrinos mendrinos changed the title feat: add support for authorization parameters and ensure state param is included from query when present in Facebook OAuth feat: add support for authorization parameters and ensure state param is included from query when present in Facebook & Microsoft OAuth Apr 5, 2025
@atinux atinux merged commit 3286953 into atinux:main Apr 7, 2025
4 checks passed
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

Successfully merging this pull request may close these issues.

2 participants