Skip to content

fix(examples): correct fastify oauth2 import in examples#319

Merged
Tony133 merged 2 commits into
fastify:mainfrom
mrbonk97:fix/examples-oauth2-import
Jun 7, 2026
Merged

fix(examples): correct fastify oauth2 import in examples#319
Tony133 merged 2 commits into
fastify:mainfrom
mrbonk97:fix/examples-oauth2-import

Conversation

@mrbonk97

@mrbonk97 mrbonk97 commented Jan 4, 2026

Copy link
Copy Markdown
Contributor

This PR fixes incorrect example code by replacing the deprecated
fastify-oauth2 package with the correct scoped package @fastify/oauth2.

The previous example caused runtime errors for users following the documentation.
This change aligns the examples with the current Fastify OAuth2 plugin.

Checklist

@gurgunday gurgunday left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Tony133 Tony133 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Tony133 Tony133 merged commit 0f3c7ae into fastify:main Jun 7, 2026
14 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.

3 participants