Skip to content

oauth_login_succeeded

This page is auto-generated from src/auth/stytch-invite.ts. Do not edit by hand — see docs/dev/docs-auto-sync.md.

oauth_login_succeeded

FunctionSource
encodeOauthLoginSucceededAuditReasonsrc/auth/stytch-invite.ts:265
FieldTypeRequiredNotes
provider"google" | "github" | "microsoft"yes
member_idstringyes
is_new_memberbooleanyesTrue when Stytch reported the member was freshly created by this OAuth login (signals the new-tenant auto-create path ran). False on every subsequent OAuth sign-in for a returning member.
by_user_idstringyes

This envelope is stored in audit_log.decision_reason (varchar(256)) as a JSON object with the shape { event, ...ctx }. The audit_log row carries tenant_id, actor_user_id, and timestamp as columns alongside — those are not duplicated in the envelope.