import { Middleware } from '@curveball/kernel'; import '@curveball/session'; import { OAuth2Client } from '@badgateway/oauth2-client'; type OAuth2Options = { client: OAuth2Client; scope?: string[]; }; /** * This middleware allows OAuth2 bearer tokens to be specified as cookies. * * If authentication fails, and we detect a browser, this middleware will * automatically attempt to do OAuth2 authentication. */ export default function (options: OAuth2Options): Middleware; export {};