Fix build errors
This commit is contained in:
parent
785d0965e3
commit
d0f1c1337c
28 changed files with 268 additions and 112 deletions
|
|
@ -29,8 +29,8 @@ export const cfVerifier = (audience: string, domain: string): VerifyFn => {
|
|||
});
|
||||
|
||||
return async (token) => {
|
||||
const getKey = (header, callback) => {
|
||||
client.getSigningKey(header.kid, function (err, key) {
|
||||
const getKey = (header: any, callback: any) => {
|
||||
client.getSigningKey(header.kid, function (err: any, key: any) {
|
||||
if (err)
|
||||
throw Boom.serverUnavailable(
|
||||
"failed to fetch cloudflare access jwks"
|
||||
|
|
@ -201,6 +201,7 @@ export const CloudflareAccessProvider = (
|
|||
req: IncomingMessage
|
||||
) => {
|
||||
const verifier = cfVerifier(audience, domain);
|
||||
// @ts-expect-error
|
||||
return Providers.Credentials({
|
||||
id: cloudflareAccountProvider,
|
||||
name: "Cloudflare Access",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue