Packages
OpenAPI API client for Ory Kratos, Ory's central identity management solution with hardened authentication, MFA, FIDO2, TOTP, WebAuthn, SSO, profile management, and more.
Current section
Files
Jump to
Current section
Files
lib/ory/model/successful_code_exchange_response.ex
# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech).
# Do not edit this file manually.
defmodule Ory.Model.SuccessfulCodeExchangeResponse do
@moduledoc """
The Response for Registration Flows via API
"""
@derive [Poison.Encoder]
defstruct [
:session,
:session_token
]
@type t :: %__MODULE__{
:session => Ory.Model.Session.t,
:session_token => String.t | nil
}
end
defimpl Poison.Decoder, for: Ory.Model.SuccessfulCodeExchangeResponse do
import Ory.Deserializer
def decode(value, options) do
value
|> deserialize(:session, :struct, Ory.Model.Session, options)
end
end