You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve out of the box types by using a prefix when decorating (#224)
* Use a prefix when decorating fastify
This enables out of the box typing + can, if the old way is eventually dropped, stop the risk of clashes between other fastify plugins and/or core methods and the names used in auth configurations.
Signed-off-by: Pelle Wessman <[email protected]>
* Fix feedback from @mcollina
---------
Signed-off-by: Pelle Wessman <[email protected]>
E.g. For `name: 'customOauth2'`, the helpers `getAccessTokenFromAuthorizationCodeFlow` and `getNewAccessTokenUsingRefreshToken` will become accessible like this:
All auth configurations are made available with an `oauth2` prefix that's typed to `OAuth2Namespace | undefined`, such as eg. `fastify.oauth2CustomOauth2` for `customOauth2`.
306
+
305
307
## Provider Quirks
306
308
307
309
The following providers require additional work to be set up correctly.
0 commit comments