{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"redocly_category":"SDK Reference","product":"Fraud Prevention","type":"markdown"},"seo":{"title":"Interface: AuthContext","description":"Everything about Mosaic Journeys, SDKs, and APIs","siteUrl":"https://developer.transmitsecurity.com"},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"interface-authcontext","__idx":0},"children":["Interface: AuthContext"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Authentication context of an already-authenticated user, passed via ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/sdk-ref/platform/interfaces/actioneventoptions#authcontext"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ActionEventOptions.authContext"]}]}," in a ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/sdk-ref/platform/modules/drs#triggeractionevent"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["drs.triggerActionEvent()"]}]}," call. We recommend using it only when the login happened outside the current flow. If the user authenticates within the flow, report the user via ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/sdk-ref/platform/modules/drs#reportactionresult"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["drs.reportActionResult()"]}]}," instead."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"properties","__idx":1},"children":["Properties"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"userid","__idx":2},"children":["userId"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["• ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["userId"]},": ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Opaque identifier of the authenticated user in your system. Required — providing an auth context indicates that the user is already authenticated (e.g. they logged in through a flow outside this SDK before reaching this action)."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"logintimestamp","__idx":3},"children":["loginTimestamp"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["• ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Optional"]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["loginTimestamp"]},": ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["number"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Unix timestamp (ms) of when the login happened."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"challengetype","__idx":4},"children":["challengeType"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["• ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Optional"]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["challengeType"]},": ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/sdk-ref/platform/enums/challengetype"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ChallengeType"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The challenge type used for the authentication action (e.g. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sms_otp"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["password"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["passkey"]},")."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"failedattempts","__idx":5},"children":["failedAttempts"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["• ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Optional"]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["failedAttempts"]},": ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["number"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The number of failed attempts for the authentication action."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"authmethod","__idx":6},"children":["authMethod"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["• ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Optional"]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["authMethod"]},": ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/sdk-ref/platform/enums/authmethodtype"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["AuthMethodType"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The authentication method used for the authentication action (e.g. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["password"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["mobile_biometric"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["oidc"]},")."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"loginorigin","__idx":7},"children":["loginOrigin"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["• ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Optional"]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["loginOrigin"]},": ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["string"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The origin the user logged in from, such as the URL of the site or app where the login took place."]}]},"headings":[{"value":"Interface: AuthContext","id":"interface-authcontext","depth":1},{"value":"Properties","id":"properties","depth":2},{"value":"userId","id":"userid","depth":3},{"value":"loginTimestamp","id":"logintimestamp","depth":3},{"value":"challengeType","id":"challengetype","depth":3},{"value":"failedAttempts","id":"failedattempts","depth":3},{"value":"authMethod","id":"authmethod","depth":3},{"value":"loginOrigin","id":"loginorigin","depth":3}],"frontmatter":{"title":"AuthContext","seo":{"title":"Interface: AuthContext"}},"lastModified":"2026-10-22T11:51:00.134Z","pagePropGetterError":{"message":"","name":""}},"slug":"/sdk-ref/platform/interfaces/authcontext","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}