attest
Attests the current member session using a Stytch Trusted Auth Token. Calls the POST /sdk/v1/b2b/sessions/attest endpoint.
Kotlin:
StytchB2B.sessions.attest(
B2BSessionsAttestParameters(
profileId = "profile-id",
token = "integrity-token",
)
)Content copied to clipboard
iOS:
let params = B2BSessionsAttestParameters(profileId: "profile-id", token: "integrity-token")
let response = try await StytchB2B.sessions.attest(params)Content copied to clipboard
React Native:
StytchB2B.sessions.attest({ profileId: "profile-id", token: "integrity-token" })Content copied to clipboard
Return
B2BSessionsAttestResponse containing the updated member session.
Parameters
request
IB2BSessionsAttestParameters
profileId— The device profile ID from the integrity provider.token— The Stytch Trusted Auth Token.organizationId?— The ID of the organization to attest for; defaults to the current session's org.sessionDurationMinutes?— If provided, extends the session by this many minutes.
Throws
StytchError
if the attestation token is invalid.
if the coroutine is cancelled.