MCPcopy
hub / github.com/nextauthjs/next-auth / AdvancedEndpointHandler

Interface AdvancedEndpointHandler

src/providers/oauth.ts:41–55  ·  view source on GitHub ↗

Gives granular control of the request to the given endpoint

Source from the content-addressed store, hash-verified

39
40/** Gives granular control of the request to the given endpoint */
41interface AdvancedEndpointHandler<P extends UrlParams, C, R> {
42 /** Endpoint URL. Can contain parameters. Optionally, you can use `params` */
43 url?: string
44 /** These will be prepended to the `url` */
45 params?: P
46 /**
47 * Control the corresponding OAuth endpoint request completely.
48 * Useful if your provider relies on some custom behaviour
49 * or it diverges from the OAuth spec.
50 *
51 * - ⚠ **This is an advanced option.**
52 * You should **try to avoid using advanced options** unless you are very comfortable using them.
53 */
54 request?: EndpointRequest<C, R, P>
55}
56
57/** Either an URL (containing all the parameters) or an object with more granular control. */
58export type EndpointHandler<

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…