diff --git a/api/authentication/oauth1.md b/api/authentication/oauth1.md index a00e3e7e..d7587167 100644 --- a/api/authentication/oauth1.md +++ b/api/authentication/oauth1.md @@ -74,7 +74,8 @@ Registering the OAuth1 plugin will automatically set up routes to handle the OAu session: true, // whether to use sessions, handler: function, // Express middleware for handling the oauth callback. Defaults to the built in middleware. formatter: function, // The response formatter. Defaults the the built in feathers-rest formatter, which returns JSON. - Verifier: Verifier // A Verifier class. Defaults to the built-in one but can be a custom one. See below for details. + Verifier: Verifier, // A Verifier class. Defaults to the built-in one but can be a custom one. See below for details. + makeQuery: function // Makes query for finding an existing user. Defaults to (profile, options) => ({ [options.idField]: profile.id }) } ``` diff --git a/api/authentication/oauth2.md b/api/authentication/oauth2.md index 6b886ee6..82c823b8 100644 --- a/api/authentication/oauth2.md +++ b/api/authentication/oauth2.md @@ -74,7 +74,8 @@ Registering the OAuth2 plugin will automatically set up routes to handle the OAu handler: middleware, // Express middleware for handling the oauth callback. Defaults to the built in middleware. errorHandler: middleware, // Express middleware for handling errors. Defaults to the built in middleware. formatter: middleware, // The response formatter middleware. Defaults to the the built in feathers-rest formatter, handling only JSON. - Verifier: Verifier // A Verifier class. Defaults to the built-in one but can be a custom one. See below for details. + Verifier: Verifier, // A Verifier class. Defaults to the built-in one but can be a custom one. See below for details. + makeQuery: function // Makes query for finding an existing user. Defaults to (profile, options) => ({ [options.idField]: profile.id }) } ```