mirror of
https://github.com/wassname/talk.git
synced 2026-07-17 11:33:39 +08:00
fix: rename wrapAuthz with wrapAuthn
This commit is contained in:
@@ -84,7 +84,7 @@ export async function handleSuccessfulLogin(
|
||||
}
|
||||
|
||||
/**
|
||||
* wrapAuthz will wrap a authenticators authenticate method with one that
|
||||
* wrapAuthn will wrap a authenticators authenticate method with one that
|
||||
* will return a valid login token for a valid login by a compatible strategy.
|
||||
*
|
||||
* @param authenticator the base authenticator instance
|
||||
@@ -92,7 +92,7 @@ export async function handleSuccessfulLogin(
|
||||
* @param name the name of the authenticator to use
|
||||
* @param options any options to be passed to the authenticate call
|
||||
*/
|
||||
export const wrapAuthz = (
|
||||
export const wrapAuthn = (
|
||||
authenticator: passport.Authenticator,
|
||||
signingConfig: JWTSigningConfig,
|
||||
name: string,
|
||||
|
||||
Reference in New Issue
Block a user