-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(provider): new strategy for auth0 #245
Conversation
passport based strategy GH-244
passReqToCallback?: false | undefined; | ||
} | ||
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */ | ||
export type VerifyCallback = (err?: any, user?: any, info?: any) => void; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isnt this available in passport strategy typings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no not explicitly
@@ -120,6 +121,16 @@ export namespace VerifyFunction { | |||
req?: Request, | |||
): Promise<T | null>; | |||
} | |||
export interface Auth0Fn<T = IAuthUser> extends GenericAuthFn<T> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We create interface for each strategy based on its verify function type
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls check the comments
sonar fix GH-244
Quality Gate passedIssues Measures |
🎉 This PR is included in version 12.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
passport based strategy
GH-244
Description
Added a new passport based strategy for auth0 authentication.
Fixes #244
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Used this package in sourceloop based authentication service
Checklist: