MCPcopy Create free account

hub / github.com/Lokicoule/nestjs-cognito / functions

Functions278 in github.com/Lokicoule/nestjs-cognito

↓ 29 callersMethodbuild
()
packages/auth/lib/user/user.builder.ts:76
↓ 28 callersMethodsetUsername
* Set the username of the user * @param {string} username - The username
packages/auth/lib/user/user.builder.ts:21
↓ 26 callersMethodsetEmail
* Set the email address of the user * @param {string} email - The email address
packages/auth/lib/user/user.builder.ts:55
↓ 21 callersMethodsetGroups
* Set the groups of the user and lowercase them to make them case insensitive * @param {string[]} groups - The groups
packages/auth/lib/user/user.builder.ts:71
↓ 20 callersMethodvalidate
(user?: User, options?: AuthorizationOptions)
packages/auth/lib/validators/abstract.validator.ts:6
↓ 16 callersMethodonValidate
(user?: User, options?: AuthorizationOptions)
packages/auth/lib/validators/abstract.validator.ts:7
↓ 11 callersMethodsetMockConfig
(config: MockConfig)
packages/testing/lib/cognito-mock.service.ts:13
↓ 10 callersMethodcreate
* Creates a new instance of the builder * @Returns {ValidatorChainBuilder} - The builder instance
packages/auth/lib/validators/validator.builder.ts:19
↓ 8 callersMethodcreate
* Creates a new instance of CognitoJwtVerifier. * @param props - The properties for the CognitoJwtVerifier. * @returns A new instance of Cognito
packages/core/lib/adapters/cognito-jwt-verifier.adapter.ts:46
↓ 8 callersFunctionextractCognitoUserData
( payload: CognitoJwtPayload | undefined, expectedTokenType?: 'access' | 'id', data?: string | string[]
packages/auth/lib/user/decorators/cognito-user.helper.ts:12
↓ 8 callersMethodfromCognitoJwtPayload
( payload: CognitoJwtPayload, )
packages/auth/lib/user/user.mapper.ts:11
↓ 8 callersMethodgetAccessToken
* Get the access token for the given username and password. * @param {InitiateAuthRequest} request * @returns {Promise<AuthenticationResultType>
packages/testing/lib/cognito-testing.service.ts:40
↓ 8 callersMethodgetMockTokens
(clientId: string)
packages/testing/lib/cognito-mock.service.ts:50
↓ 8 callersMethodhasAuthenticationInfo
* Determines if the request contains authentication information. * @param request - The request object (HTTP, WebSocket, etc.) * @returns True i
packages/core/lib/interfaces/cognito-jwt-extractor.interface.ts:12
↓ 7 callersMethodgetAuthorizationToken
* Extracts the JWT token from the request. * @param request - The request object (HTTP, WebSocket, etc.) * @returns The JWT token string or null
packages/core/lib/interfaces/cognito-jwt-extractor.interface.ts:19
↓ 7 callersMethodregisterAsync
* Register the module asynchronously * @param {CognitoModuleAsyncOptions} options - The CognitoModuleAsyncOptions * @returns {DynamicModule} - T
packages/core/lib/cognito.module.ts:62
↓ 7 callersMethodverifyToken
(token: string)
packages/testing/lib/cognito-mock.service.ts:78
↓ 7 callersMethodwith
* Adds a validator to the beginning of the chain if the chain is empty * Chains the last validator to the new validator * Adds a validator to th
packages/auth/lib/validators/validator.builder.ts:30
↓ 6 callersFunctioncreateCognitoJwtVerifierInstance
( cognitoModuleOptions: CognitoModuleOptions, )
packages/core/lib/utils/cognito.utils.ts:26
↓ 6 callersFunctioncreateCognitoUserDecorator
( validateTokenType?: 'access' | 'id', getRequest?: (ctx: ExecutionContext) => any )
packages/auth/lib/user/decorators/cognito-user.decorator.ts:8
↓ 6 callersMethodhasSomeGroup
* Check if the user has at least one of the required groups * @param {string[]} groups - The required groups * @returns {boolean} - True if the
packages/auth/lib/user/user.model.ts:62
↓ 6 callersFunctionmemoize
( fn: (...args) => any, defaultKey?: string )
packages/auth/lib/utils/memoize.util.ts:7
↓ 6 callersMethodregister
* Register the module synchronously * @param {CognitoModuleOptions} options - The CognitoModuleOptions * @returns {DynamicModule} - The CognitoM
packages/core/lib/cognito.module.ts:32
↓ 6 callersFunctionremToPx
(remValue: number)
apps/docs/src/lib/remToPx.ts:1
↓ 4 callersMethodcompleteChallenge
* Complete the challenge with the given password. * @param {string} username * @param {string} password * @param {string} session * @retur
packages/testing/lib/cognito-testing.service.ts:89
↓ 4 callersMethodhasAllGroups
* Check if the user has the required groups * @param {string[]} groups - The required groups * @returns {boolean} - True if the user has the req
packages/auth/lib/user/user.model.ts:71
↓ 4 callersMethodhasGroup
* Check if the user has a group * @param {string} group - The group * @returns {boolean} - True if the user has the group
packages/auth/lib/user/user.model.ts:53
↓ 4 callersFunctionparseCookies
(cookies?: string)
packages/core/lib/utils/cookies.utils.ts:8
↓ 4 callersMethodregister
(config: CognitoModuleOptions)
packages/auth/lib/cognito-auth.module.ts:11
↓ 4 callersMethodregisterAsync
(options: CognitoModuleAsyncOptions)
packages/auth/lib/cognito-auth.module.ts:19
↓ 4 callersFunctionuseIsInsideMobileNavigation
()
apps/docs/src/components/MobileNavigation.tsx:136
↓ 4 callersFunctionuseSectionStore
(selector: (state: SectionState) => T)
apps/docs/src/components/SectionProvider.tsx:150
↓ 3 callersFunctionAuthentication
()
packages/auth/lib/authentication/authentication.decorator.ts:8
↓ 3 callersFunctionGqlAuthentication
()
packages/graphql/lib/authentication/authentication.decorator.ts:8
↓ 3 callersFunctionInjectCognitoIdentityProvider
()
packages/core/lib/decorators/cognito.decorators.ts:12
↓ 3 callersMethodbuild
* Gets the first validator in the chain * @returns {AbstractValidator} - The first validator in the chain
packages/auth/lib/validators/validator.builder.ts:11
↓ 3 callersFunctionclose
()
apps/docs/src/components/Search.tsx:331
↓ 3 callersFunctioncreateCognitoIdentityProviderInstance
( cognitoModuleOptions: CognitoModuleOptions, )
packages/core/lib/utils/cognito.utils.ts:61
↓ 3 callersMethodcreateToken
(payload: TokenPayload)
packages/testing/lib/cognito-mock.service.ts:44
↓ 3 callersMethodgetRequest
(context: ExecutionContext)
packages/auth/lib/abstract.guard.spec.ts:13
↓ 3 callersMethodlogin
(@Body() body: Record<string, string>)
packages/testing/lib/cognito-testing.controller.ts:11
↓ 3 callersMethodregisterAsync
( options: CognitoModuleAsyncOptions, mockConfig?: MockConfig )
packages/testing/lib/cognito-testing.module.ts:118
↓ 2 callersFunctionAuthorization
( options: AuthorizationOptions, )
packages/auth/lib/authorization/authorization.decorator.ts:10
↓ 2 callersFunctionGqlAuthorization
( options: AuthorizationOptions, )
packages/graphql/lib/authorization/authorization.decorator.ts:10
↓ 2 callersFunctionInjectCognitoJwtExtractor
()
packages/core/lib/decorators/cognito.decorators.ts:29
↓ 2 callersFunctionInjectCognitoJwtVerifier
()
packages/core/lib/decorators/cognito.decorators.ts:20
↓ 2 callersMethodcreateAsyncOptionsProvider
* Create the async options provider * @param {CognitoModuleAsyncOptions} options - The CognitoModuleAsyncOptions * @returns {Provider} - The pro
packages/core/lib/cognito.module.ts:104
↓ 2 callersFunctioncreateAuthorizationGuard
(options: AuthorizationOptions)
packages/auth/lib/authorization/authorization.guard.ts:11
↓ 2 callersMethodcreateMockProviders
(mockConfig: MockConfig)
packages/testing/lib/cognito-testing.module.ts:40
↓ 2 callersMethodextractGroups
(payload: CognitoJwtPayload)
packages/auth/lib/user/user.mapper.ts:41
↓ 2 callersFunctiongetPanelTitle
({ title, language, }: { title?: string language?: string })
apps/docs/src/components/Code.tsx:29
↓ 2 callersMethodregister
( config: CognitoModuleOptions, mockConfig?: MockConfig )
packages/testing/lib/cognito-testing.module.ts:92
↓ 2 callersFunctionuseInitialValue
(value: T, condition = true)
apps/docs/src/components/Navigation.tsx:23
↓ 2 callersFunctionuseSearchProps
()
apps/docs/src/components/Search.tsx:430
↓ 1 callersMethod#handleAuthError
(error: any)
packages/testing/lib/cognito-testing.service.ts:112
↓ 1 callersMethod#handleChallengeError
(error: any)
packages/testing/lib/cognito-testing.service.ts:138
↓ 1 callersFunctionPublicRoute
()
packages/auth/lib/whitelist/whitelist.decorator.ts:5
↓ 1 callersFunctionbootstrap
()
sample/01-auth/src/main.ts:4
↓ 1 callersFunctionbootstrap
()
sample/02-auth-graphql/src/main.ts:4
↓ 1 callersFunctionbuildConfigurationFromOptions
* Get the configuration from the CognitoModuleOptions * @param {CognitoModuleOptions} options - The CognitoModuleOptions * @param {string} from - Th
packages/core/lib/utils/cognito.utils.ts:81
↓ 1 callersFunctioncheckVisibleSections
()
apps/docs/src/components/SectionProvider.tsx:70
↓ 1 callersMethodcreateAsyncProviders
* Create the async providers * @param {CognitoModuleAsyncOptions} options - The CognitoModuleAsyncOptions * @returns {Provider[]} - The provider
packages/core/lib/cognito.module.ts:84
↓ 1 callersMethodcreateBasePayload
( clientId: string )
packages/testing/lib/cognito-mock.service.ts:21
↓ 1 callersFunctioncreateCognitoJwtExtractorInstance
( options: CognitoModuleOptions, )
packages/core/lib/utils/cognito.utils.ts:15
↓ 1 callersMethodcreateCognitoModuleOptions
()
packages/core/lib/interfaces/cognito-module.options.ts:87
↓ 1 callersFunctioncreateSectionStore
(sections: Array<Section>)
apps/docs/src/components/SectionProvider.tsx:37
↓ 1 callersFunctionexcludeObjectExpressions
(tree)
apps/docs/src/mdx/search.mjs:24
↓ 1 callersMethodgetMockConfig
()
packages/testing/lib/cognito-mock.service.ts:17
↓ 1 callersMethodgetRequest
* Get the request from the context * @param {ExecutionContext} context - The context * @returns {Request} - The request
packages/auth/lib/authentication/authentication.guard.ts:15
↓ 1 callersFunctiongetSections
(node)
apps/docs/src/mdx/rehype.mjs:108
↓ 1 callersFunctionisObjectExpression
(node)
apps/docs/src/mdx/search.mjs:17
↓ 1 callersFunctiononMediaChange
()
apps/docs/src/app/providers.tsx:12
↓ 1 callersFunctionpreventLayoutShift
(callback: () => void)
apps/docs/src/components/Code.tsx:247
↓ 1 callersMethodsetClientId
* Set the client ID for machine-to-machine authentication * @param {string} clientId - The client ID
packages/auth/lib/user/user.builder.ts:38
↓ 1 callersMethodsetMockConfig
(config: MockConfig)
packages/testing/lib/cognito-testing.service.ts:26
↓ 1 callersMethodsetNext
(validator: Validator)
packages/auth/lib/validators/abstract.validator.ts:5
↓ 1 callersFunctionuseAutocomplete
({ close }: { close: () => void })
apps/docs/src/components/Search.tsx:36
↓ 1 callersFunctionusePreventLayoutShift
()
apps/docs/src/components/Code.tsx:233
↓ 1 callersFunctionuseTabGroupProps
(availableLanguages: Array<string>)
apps/docs/src/components/Code.tsx:281
↓ 1 callersFunctionuseVisibleSections
(sectionStore: StoreApi<SectionState>)
apps/docs/src/components/SectionProvider.tsx:65
↓ 1 callersMethodverify
* Verifies the given token. * @param token - The token to verify. * @returns A promise that resolves to the verification result. * @throws An
packages/core/lib/adapters/cognito-jwt-verifier.adapter.ts:72
Function#getAuthenticatedUser
(request)
packages/auth/lib/abstract.guard.ts:123
Function#isWhitelisted
(context: ExecutionContext)
packages/auth/lib/abstract.guard.ts:133
FunctionActivePageMarker
({ group, pathname, }: { group: NavGroup pathname: string })
apps/docs/src/components/Navigation.tsx:124
FunctionAnchor
({ id, inView, children, }: { id: string inView: boolean children: React.ReactNode })
apps/docs/src/components/Heading.tsx:43
FunctionAnchorIcon
(props: React.ComponentPropsWithoutRef<'svg'>)
apps/docs/src/components/Heading.tsx:11
FunctionArrowIcon
(props: React.ComponentPropsWithoutRef<'svg'>)
apps/docs/src/components/Button.tsx:4
FunctionBellIcon
(props: React.ComponentPropsWithoutRef<'svg'>)
apps/docs/src/components/icons/BellIcon.tsx:1
FunctionBoltIcon
(props: React.ComponentPropsWithoutRef<'svg'>)
apps/docs/src/components/icons/BoltIcon.tsx:1
FunctionBookIcon
(props: React.ComponentPropsWithoutRef<'svg'>)
apps/docs/src/components/icons/BookIcon.tsx:1
FunctionButton
({ variant = 'primary', className, children, arrow, ...props }: ButtonProps)
apps/docs/src/components/Button.tsx:37
FunctionCalendarIcon
(props: React.ComponentPropsWithoutRef<'svg'>)
apps/docs/src/components/icons/CalendarIcon.tsx:1
FunctionCartIcon
(props: React.ComponentPropsWithoutRef<'svg'>)
apps/docs/src/components/icons/CartIcon.tsx:1
FunctionChatBubbleIcon
(props: React.ComponentPropsWithoutRef<'svg'>)
apps/docs/src/components/icons/ChatBubbleIcon.tsx:1
FunctionCheckIcon
(props: React.ComponentPropsWithoutRef<'svg'>)
apps/docs/src/components/Feedback.tsx:6
FunctionCheckIcon
(props: React.ComponentPropsWithoutRef<'svg'>)
apps/docs/src/components/icons/CheckIcon.tsx:1
FunctionChevronRightLeftIcon
( props: React.ComponentPropsWithoutRef<'svg'>, )
apps/docs/src/components/icons/ChevronRightLeftIcon.tsx:1
FunctionClipboardIcon
(props: React.ComponentPropsWithoutRef<'svg'>)
apps/docs/src/components/Code.tsx:45
FunctionClipboardIcon
(props: React.ComponentPropsWithoutRef<'svg'>)
apps/docs/src/components/icons/ClipboardIcon.tsx:1
FunctionCode
({ children, ...props }: React.ComponentPropsWithoutRef<'code'>)
apps/docs/src/components/Code.tsx:351
next →1–100 of 278, ranked by callers