MCPcopy Create free account

hub / github.com/Nalhin/SocialAuth / functions

Functions87 in github.com/Nalhin/SocialAuth

↓ 8 callersMethoderrorsIfPresent
()
backend/src/common/utils/either.ts:15
↓ 6 callersMethodisError
()
backend/src/common/utils/either.ts:9
↓ 6 callersMethodregisterSocial
( profile: Profile, username: string, provider: SocialProviderTypes, )
backend/src/auth/auth.service.ts:80
↓ 6 callersMethodsave
(user: Partial<User>)
backend/src/user/user.service.ts:9
↓ 5 callersFunctionInput
()
backend/src/graphql/args/input.args.ts:3
↓ 5 callersMethodregister
( @Input() input: RegisterUserInput, )
backend/src/auth/auth.resolver.ts:41
↓ 5 callersMethodresultIfPresent
()
backend/src/common/utils/either.ts:17
↓ 5 callersMethodsignToken
(user: User)
backend/src/auth/auth.service.ts:40
↓ 4 callersMethodfindOneByUsername
(username: string)
backend/src/user/user.service.ts:18
↓ 4 callersMethodloginSocial
( profile: Profile, provider: SocialProviderTypes, )
backend/src/auth/auth.service.ts:63
↓ 3 callersFunctionauthHeaderFactory
(user: Partial<User>)
backend/test/factories/auth.factory.ts:26
↓ 3 callersMethodexistsByCredentials
( user: Pick<User, 'email' | 'username'>, )
backend/src/user/user.service.ts:31
↓ 3 callersMethodfindAll
()
backend/src/post/post.service.ts:16
↓ 3 callersFunctioninitializeApp
()
backend/test/e2e/test-utils/initialize-app.ts:16
↓ 3 callersMethodregisterUser
( user: RegisterUserInput, )
backend/src/auth/auth.service.ts:48
↓ 3 callersMethodvalidateCredentials
( username: string, password: string, )
backend/src/auth/auth.service.ts:25
↓ 2 callersMethodfindAll
()
backend/src/user/user.service.ts:14
↓ 2 callersMethodfindOneBySocialId
(socialId: string)
backend/src/user/user.service.ts:22
↓ 2 callersMethodisResult
()
backend/src/common/utils/either.ts:11
↓ 2 callersMethodlogin
( @Input() input: LoginUserInput, )
backend/src/auth/auth.resolver.ts:23
↓ 2 callersMethodremove
(id: number)
backend/src/user/user.service.ts:26
↓ 2 callersMethodsave
(post: AddPostInput, user: User)
backend/src/post/post.service.ts:12
↓ 1 callersFunctionValidateInput
()
backend/src/common/decorators/validate-input.decorator.ts:5
↓ 1 callersMethodaddPost
( @Input() addPostInput: AddPostInput, @GqlUser() user: User, )
backend/src/post/post.resolver.ts:23
↓ 1 callersFunctionbootstrap
()
backend/src/main.ts:5
↓ 1 callersMethodcloseServer
()
backend/test/e2e/test-utils/typeorm-test.utils.ts:20
↓ 1 callersMethodcomparePassword
(password: string)
backend/src/user/user.entity.ts:42
↓ 1 callersFunctioncreatePassportContext
(request, response)
backend/src/common/guards/custom-auth.guard.ts:66
↓ 1 callersMethodexistsByEmailOrUsername
( email: string, username: string, )
backend/src/user/user.repository.ts:6
↓ 1 callersMethodexistsBySocialId
(socialId: string)
backend/src/auth/auth.repository.ts:7
↓ 1 callersMethodgetRequest
(context: ExecutionContext)
backend/src/common/guards/custom-auth.guard.ts:42
↓ 1 callersMethodhandleRequest
(err, user, _info, _context, _status)
backend/src/common/guards/custom-auth.guard.ts:55
↓ 1 callersMethodhashPassword
()
backend/src/user/user.entity.ts:38
↓ 1 callersMethodisError
()
backend/src/common/utils/either.ts:29
↓ 1 callersMethodisResult
()
backend/src/common/utils/either.ts:33
↓ 1 callersMethodremoveUser
( @Args({ name: 'id', type: () => ID }) id: number, )
backend/src/user/user.resolver.ts:30
↓ 1 callersMethodsaveProviderAndUser
(user: Partial<User>, provider: Partial<SocialProvider>)
backend/src/auth/auth.repository.ts:14
↓ 1 callersMethodstartServer
()
backend/test/e2e/test-utils/typeorm-test.utils.ts:16
↓ 1 callersFunctiontokenFactory
(user: Partial<User>)
backend/test/factories/auth.factory.ts:22
↓ 1 callersMethoduser
(@Args('username') username: string)
backend/src/user/user.resolver.ts:18
↓ 1 callersMethodusers
()
backend/src/user/user.resolver.ts:13
MethodcanActivate
(context: ExecutionContext)
backend/src/common/guards/custom-auth.guard.ts:24
Methodcatch
(exception: InputValidationException, host: ArgumentsHost)
backend/src/common/filters/input-validation-exception.filter.ts:8
Functioncleanup
()
backend/test/e2e/test-utils/initialize-app.ts:32
Functionconstructor
(message?: string)
backend/src/graphql/interfaces/error-response.interface.ts:8
Methodconstructor
()
backend/test/e2e/test-utils/typeorm-test.utils.ts:10
Methodconstructor
( private readonly jwtService: JwtService, private readonly userService: UserService, private read
backend/src/auth/auth.service.ts:19
Methodconstructor
(private readonly authService: AuthService)
backend/src/auth/auth.resolver.ts:20
Methodconstructor
( @Inject(facebookConfig.KEY) private facebookConf: ConfigType<typeof facebookConfig>, )
backend/src/auth/strategy/facebook.strategy.ts:14
Methodconstructor
( private userService: UserService, @Inject(jwtConfig.KEY) private jwtConf: ConfigType<typeof jwtC
backend/src/auth/strategy/jwt.strategy.ts:11
Methodconstructor
( @Inject(googleConfig.KEY) private googleConf: ConfigType<typeof googleConfig>, )
backend/src/auth/strategy/google.strategy.ts:14
Methodconstructor
(partial?: Partial<SocialAlreadyAssignedError>)
backend/src/auth/responses/social-already-assigned.error.ts:12
Methodconstructor
(partial?: Partial<AuthUserResponse>)
backend/src/auth/responses/auth-user.response.ts:12
Methodconstructor
(partial?: Partial<InvalidCredentialsError>)
backend/src/auth/responses/invalid-credentials.error.ts:11
Methodconstructor
(partial?: Partial<CredentialsTakenError>)
backend/src/auth/responses/credentials-taken.error.ts:14
Methodconstructor
(partial?: Partial<SocialNotRegisteredError>)
backend/src/auth/responses/social-not-registered.error.ts:12
Methodconstructor
(private readonly usersRepository: UserRepository)
backend/src/user/user.service.ts:7
Methodconstructor
(private readonly userService: UserService)
backend/src/user/user.resolver.ts:10
Methodconstructor
(value, type)
backend/src/common/utils/either.ts:24
Methodconstructor
(@Optional() protected readonly options: AuthModuleOptions)
backend/src/common/guards/custom-auth.guard.ts:20
Methodconstructor
(errors: InputError[])
backend/src/common/exceptions/input-validation.exception.ts:6
Methodconstructor
()
backend/src/common/pipes/input-validation.pipe.ts:6
Methodconstructor
(errors: InputError[])
backend/src/graphql/responses/invalid-input.error.ts:20
Methodconstructor
(private readonly postsRepository: PostRepository)
backend/src/post/post.service.ts:9
Methodconstructor
(private readonly postService: PostService)
backend/src/post/post.resolver.ts:13
FunctioncreateAuthGuard
()
backend/src/common/guards/custom-auth.guard.ts:18
MethodcreateGqlOptions
()
backend/test/config/graphql.config.ts:6
MethodcreateGqlOptions
()
backend/src/config/graphql.config.ts:7
MethodcreateTypeOrmOptions
()
backend/test/config/typeorm.config.ts:7
MethodcreateTypeOrmOptions
()
backend/src/config/typeorm.config.ts:7
Functionerror
(error: T)
backend/src/common/utils/either.ts:58
MethoderrorsIfPresent
()
backend/src/common/utils/either.ts:41
MethodfindOneBySocialId
(socialId: string)
backend/src/user/user.repository.ts:18
MethodgetRequest
(context: GqlExecutionContext)
backend/src/common/guards/jwt-auth.guard.ts:8
MethodgetRequest
(context: GqlExecutionContext)
backend/src/common/guards/social-auth.guard.ts:7
MethodhandleRequest
(err: any, user: any)
backend/src/common/guards/jwt-auth.guard.ts:16
MethodlogIn
( request: TRequest, )
backend/src/common/guards/custom-auth.guard.ts:46
MethodloginSocial
( @SocialProfile() profile: Profile, @Input() input: LoginSocialInput, )
backend/src/auth/auth.resolver.ts:56
Methodme
(@GqlUser() user: User)
backend/src/user/user.resolver.ts:24
Functionof
(result: U)
backend/src/common/utils/either.ts:54
Methodposts
()
backend/src/post/post.resolver.ts:17
MethodregisterSocial
( @SocialProfile() profile: Profile, @Input() input: RegisterSocialInput, )
backend/src/auth/auth.resolver.ts:72
MethodresultIfPresent
()
backend/src/common/utils/either.ts:47
Methodvalidate
( accessToken: string, refreshToken: string, profile: Profile, done: Function, )
backend/src/auth/strategy/facebook.strategy.ts:24
Methodvalidate
(payload: any, done: VerifiedCallback)
backend/src/auth/strategy/jwt.strategy.ts:23
Methodvalidate
( accessToken: string, refreshToken: string, profile: Profile, done: Function, )
backend/src/auth/strategy/google.strategy.ts:24
Methodvalue
()
backend/src/common/utils/either.ts:37