Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Nalhin/SocialAuth
/ functions
Functions
87 in github.com/Nalhin/SocialAuth
⨍
Functions
87
◇
Types & classes
95
↓ 8 callers
Method
errorsIfPresent
()
backend/src/common/utils/either.ts:15
↓ 6 callers
Method
isError
()
backend/src/common/utils/either.ts:9
↓ 6 callers
Method
registerSocial
( profile: Profile, username: string, provider: SocialProviderTypes, )
backend/src/auth/auth.service.ts:80
↓ 6 callers
Method
save
(user: Partial<User>)
backend/src/user/user.service.ts:9
↓ 5 callers
Function
Input
()
backend/src/graphql/args/input.args.ts:3
↓ 5 callers
Method
register
( @Input() input: RegisterUserInput, )
backend/src/auth/auth.resolver.ts:41
↓ 5 callers
Method
resultIfPresent
()
backend/src/common/utils/either.ts:17
↓ 5 callers
Method
signToken
(user: User)
backend/src/auth/auth.service.ts:40
↓ 4 callers
Method
findOneByUsername
(username: string)
backend/src/user/user.service.ts:18
↓ 4 callers
Method
loginSocial
( profile: Profile, provider: SocialProviderTypes, )
backend/src/auth/auth.service.ts:63
↓ 3 callers
Function
authHeaderFactory
(user: Partial<User>)
backend/test/factories/auth.factory.ts:26
↓ 3 callers
Method
existsByCredentials
( user: Pick<User, 'email' | 'username'>, )
backend/src/user/user.service.ts:31
↓ 3 callers
Method
findAll
()
backend/src/post/post.service.ts:16
↓ 3 callers
Function
initializeApp
()
backend/test/e2e/test-utils/initialize-app.ts:16
↓ 3 callers
Method
registerUser
( user: RegisterUserInput, )
backend/src/auth/auth.service.ts:48
↓ 3 callers
Method
validateCredentials
( username: string, password: string, )
backend/src/auth/auth.service.ts:25
↓ 2 callers
Method
findAll
()
backend/src/user/user.service.ts:14
↓ 2 callers
Method
findOneBySocialId
(socialId: string)
backend/src/user/user.service.ts:22
↓ 2 callers
Method
isResult
()
backend/src/common/utils/either.ts:11
↓ 2 callers
Method
login
( @Input() input: LoginUserInput, )
backend/src/auth/auth.resolver.ts:23
↓ 2 callers
Method
remove
(id: number)
backend/src/user/user.service.ts:26
↓ 2 callers
Method
save
(post: AddPostInput, user: User)
backend/src/post/post.service.ts:12
↓ 1 callers
Function
ValidateInput
()
backend/src/common/decorators/validate-input.decorator.ts:5
↓ 1 callers
Method
addPost
( @Input() addPostInput: AddPostInput, @GqlUser() user: User, )
backend/src/post/post.resolver.ts:23
↓ 1 callers
Function
bootstrap
()
backend/src/main.ts:5
↓ 1 callers
Method
closeServer
()
backend/test/e2e/test-utils/typeorm-test.utils.ts:20
↓ 1 callers
Method
comparePassword
(password: string)
backend/src/user/user.entity.ts:42
↓ 1 callers
Function
createPassportContext
(request, response)
backend/src/common/guards/custom-auth.guard.ts:66
↓ 1 callers
Method
existsByEmailOrUsername
( email: string, username: string, )
backend/src/user/user.repository.ts:6
↓ 1 callers
Method
existsBySocialId
(socialId: string)
backend/src/auth/auth.repository.ts:7
↓ 1 callers
Method
getRequest
(context: ExecutionContext)
backend/src/common/guards/custom-auth.guard.ts:42
↓ 1 callers
Method
handleRequest
(err, user, _info, _context, _status)
backend/src/common/guards/custom-auth.guard.ts:55
↓ 1 callers
Method
hashPassword
()
backend/src/user/user.entity.ts:38
↓ 1 callers
Method
isError
()
backend/src/common/utils/either.ts:29
↓ 1 callers
Method
isResult
()
backend/src/common/utils/either.ts:33
↓ 1 callers
Method
removeUser
( @Args({ name: 'id', type: () => ID }) id: number, )
backend/src/user/user.resolver.ts:30
↓ 1 callers
Method
saveProviderAndUser
(user: Partial<User>, provider: Partial<SocialProvider>)
backend/src/auth/auth.repository.ts:14
↓ 1 callers
Method
startServer
()
backend/test/e2e/test-utils/typeorm-test.utils.ts:16
↓ 1 callers
Function
tokenFactory
(user: Partial<User>)
backend/test/factories/auth.factory.ts:22
↓ 1 callers
Method
user
(@Args('username') username: string)
backend/src/user/user.resolver.ts:18
↓ 1 callers
Method
users
()
backend/src/user/user.resolver.ts:13
Method
canActivate
(context: ExecutionContext)
backend/src/common/guards/custom-auth.guard.ts:24
Method
catch
(exception: InputValidationException, host: ArgumentsHost)
backend/src/common/filters/input-validation-exception.filter.ts:8
Function
cleanup
()
backend/test/e2e/test-utils/initialize-app.ts:32
Function
constructor
(message?: string)
backend/src/graphql/interfaces/error-response.interface.ts:8
Method
constructor
()
backend/test/e2e/test-utils/typeorm-test.utils.ts:10
Method
constructor
( private readonly jwtService: JwtService, private readonly userService: UserService, private read
backend/src/auth/auth.service.ts:19
Method
constructor
(private readonly authService: AuthService)
backend/src/auth/auth.resolver.ts:20
Method
constructor
( @Inject(facebookConfig.KEY) private facebookConf: ConfigType<typeof facebookConfig>, )
backend/src/auth/strategy/facebook.strategy.ts:14
Method
constructor
( private userService: UserService, @Inject(jwtConfig.KEY) private jwtConf: ConfigType<typeof jwtC
backend/src/auth/strategy/jwt.strategy.ts:11
Method
constructor
( @Inject(googleConfig.KEY) private googleConf: ConfigType<typeof googleConfig>, )
backend/src/auth/strategy/google.strategy.ts:14
Method
constructor
(partial?: Partial<SocialAlreadyAssignedError>)
backend/src/auth/responses/social-already-assigned.error.ts:12
Method
constructor
(partial?: Partial<AuthUserResponse>)
backend/src/auth/responses/auth-user.response.ts:12
Method
constructor
(partial?: Partial<InvalidCredentialsError>)
backend/src/auth/responses/invalid-credentials.error.ts:11
Method
constructor
(partial?: Partial<CredentialsTakenError>)
backend/src/auth/responses/credentials-taken.error.ts:14
Method
constructor
(partial?: Partial<SocialNotRegisteredError>)
backend/src/auth/responses/social-not-registered.error.ts:12
Method
constructor
(private readonly usersRepository: UserRepository)
backend/src/user/user.service.ts:7
Method
constructor
(private readonly userService: UserService)
backend/src/user/user.resolver.ts:10
Method
constructor
(value, type)
backend/src/common/utils/either.ts:24
Method
constructor
(@Optional() protected readonly options: AuthModuleOptions)
backend/src/common/guards/custom-auth.guard.ts:20
Method
constructor
(errors: InputError[])
backend/src/common/exceptions/input-validation.exception.ts:6
Method
constructor
()
backend/src/common/pipes/input-validation.pipe.ts:6
Method
constructor
(errors: InputError[])
backend/src/graphql/responses/invalid-input.error.ts:20
Method
constructor
(private readonly postsRepository: PostRepository)
backend/src/post/post.service.ts:9
Method
constructor
(private readonly postService: PostService)
backend/src/post/post.resolver.ts:13
Function
createAuthGuard
()
backend/src/common/guards/custom-auth.guard.ts:18
Method
createGqlOptions
()
backend/test/config/graphql.config.ts:6
Method
createGqlOptions
()
backend/src/config/graphql.config.ts:7
Method
createTypeOrmOptions
()
backend/test/config/typeorm.config.ts:7
Method
createTypeOrmOptions
()
backend/src/config/typeorm.config.ts:7
Function
error
(error: T)
backend/src/common/utils/either.ts:58
Method
errorsIfPresent
()
backend/src/common/utils/either.ts:41
Method
findOneBySocialId
(socialId: string)
backend/src/user/user.repository.ts:18
Method
getRequest
(context: GqlExecutionContext)
backend/src/common/guards/jwt-auth.guard.ts:8
Method
getRequest
(context: GqlExecutionContext)
backend/src/common/guards/social-auth.guard.ts:7
Method
handleRequest
(err: any, user: any)
backend/src/common/guards/jwt-auth.guard.ts:16
Method
logIn
( request: TRequest, )
backend/src/common/guards/custom-auth.guard.ts:46
Method
loginSocial
( @SocialProfile() profile: Profile, @Input() input: LoginSocialInput, )
backend/src/auth/auth.resolver.ts:56
Method
me
(@GqlUser() user: User)
backend/src/user/user.resolver.ts:24
Function
of
(result: U)
backend/src/common/utils/either.ts:54
Method
posts
()
backend/src/post/post.resolver.ts:17
Method
registerSocial
( @SocialProfile() profile: Profile, @Input() input: RegisterSocialInput, )
backend/src/auth/auth.resolver.ts:72
Method
resultIfPresent
()
backend/src/common/utils/either.ts:47
Method
validate
( accessToken: string, refreshToken: string, profile: Profile, done: Function, )
backend/src/auth/strategy/facebook.strategy.ts:24
Method
validate
(payload: any, done: VerifiedCallback)
backend/src/auth/strategy/jwt.strategy.ts:23
Method
validate
( accessToken: string, refreshToken: string, profile: Profile, done: Function, )
backend/src/auth/strategy/google.strategy.ts:24
Method
value
()
backend/src/common/utils/either.ts:37