Skip to content

Commit

Permalink
fix(authentication-service): code smells fixed for apple oauth
Browse files Browse the repository at this point in the history
  • Loading branch information
ashutosh-bansal-2136 committed Jul 9, 2021
1 parent 851fef0 commit 2241655
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@ import * as AppleStrategy from 'passport-apple';
import {ApplePostVerifyFn} from './types';

export class ApplePostVerifyProvider implements Provider<ApplePostVerifyFn> {
constructor() {}

value(): ApplePostVerifyFn {
return async (profile: AppleStrategy.Profile, user: IAuthUser | null) => {
return user;
};
return async (profile: AppleStrategy.Profile, user: IAuthUser | null) =>
user;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ export class ApplePreVerifyProvider implements Provider<ApplePreVerifyFn> {
refreshToken: string,
profile: AppleStrategy.Profile,
user: IAuthUser | null,
) => {
return user;
};
) => user;
}
}

0 comments on commit 2241655

Please sign in to comment.