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
ory_kratos lib ory model successful_native_registration.ex
Raw

lib/ory/model/successful_native_registration.ex

# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
# https://openapi-generator.tech
# Do not edit the class manually.
defmodule Ory.Model.SuccessfulNativeRegistration do
@moduledoc """
The Response for Registration Flows via API
"""
@derive [Poison.Encoder]
defstruct [
:identity,
:session,
:session_token
]
@type t :: %__MODULE__{
:identity => Ory.Model.Identity.t,
:session => Ory.Model.Session.t | nil,
:session_token => String.t | nil
}
end
defimpl Poison.Decoder, for: Ory.Model.SuccessfulNativeRegistration do
import Ory.Deserializer
def decode(value, options) do
value
|> deserialize(:identity, :struct, Ory.Model.Identity, options)
|> deserialize(:session, :struct, Ory.Model.Session, options)
end
end