auth-backend: spelling fix
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
+4
-4
@@ -18,17 +18,17 @@ import {
|
||||
AuthResolverContext,
|
||||
PassportProfile,
|
||||
} from '@backstage/plugin-auth-node';
|
||||
import { adoptLegacyOAuthSignInResolver } from './adoptLegacyOAuthSignInResolver';
|
||||
import { adaptLegacyOAuthSignInResolver } from './adaptLegacyOAuthSignInResolver';
|
||||
|
||||
describe('adoptLegacyOAuthSignInResolver', () => {
|
||||
describe('adaptLegacyOAuthSignInResolver', () => {
|
||||
it('should pass through undefined', () => {
|
||||
expect(adoptLegacyOAuthSignInResolver(undefined)).toBeUndefined();
|
||||
expect(adaptLegacyOAuthSignInResolver(undefined)).toBeUndefined();
|
||||
});
|
||||
|
||||
it('should convert a legacy resolver to a new one', () => {
|
||||
const legacyResolver = jest.fn();
|
||||
|
||||
const newResolver = adoptLegacyOAuthSignInResolver(legacyResolver);
|
||||
const newResolver = adaptLegacyOAuthSignInResolver(legacyResolver);
|
||||
|
||||
newResolver?.(
|
||||
{
|
||||
+1
-1
@@ -22,7 +22,7 @@ import {
|
||||
import { OAuthResult } from '../oauth';
|
||||
|
||||
/** @public */
|
||||
export function adoptLegacyOAuthSignInResolver(
|
||||
export function adaptLegacyOAuthSignInResolver(
|
||||
signInResolver?: SignInResolver<OAuthResult>,
|
||||
): SignInResolver<OAuthAuthenticatorResult<PassportProfile>> | undefined {
|
||||
return (
|
||||
@@ -15,5 +15,5 @@
|
||||
*/
|
||||
|
||||
export { adaptLegacyOAuthHandler } from './adaptLegacyOAuthHandler';
|
||||
export { adoptLegacyOAuthSignInResolver } from './adoptLegacyOAuthSignInResolver';
|
||||
export { adaptLegacyOAuthSignInResolver } from './adaptLegacyOAuthSignInResolver';
|
||||
export { adaptOAuthSignInResolverToLegacy } from './adaptOAuthSignInResolverToLegacy';
|
||||
|
||||
Reference in New Issue
Block a user