Gives granular control of the request to the given endpoint
| 39 | |
| 40 | /** Gives granular control of the request to the given endpoint */ |
| 41 | interface 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. */ |
| 58 | export type EndpointHandler< |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…