mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
refactor: auth
This commit is contained in:
1 parent
d6c95cea4a
commit
5489de2432
8 files changed
+120
-22
No files matched your search
+25
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user