refactor: auth

This commit is contained in:
wancat committed 2024-02-19 18:05:01 +08:00
1 parent d6c95cea4a
commit 5489de2432
8 files changed
+120 -22

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
/* eslint-disable no-unused-vars */
declare module 'passport-google-oidc' {
// Add specific type declarations here as needed.
// For example, if you're only using it as a middleware in Express:
import { Strategy as PassportStrategy } from 'passport'
import { Request } from 'express'
interface StrategyOptions {
clientID: string
clientSecret: string
callbackURL: string
}
interface VerifyFunction {
(
issuer: string,
profile: any,
done: (error: any, user?: any, info?: any) => void
): void
}
export class Strategy extends PassportStrategy {
constructor(options: StrategyOptions, verify: VerifyFunction)
}
}