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_native_login.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.SuccessfulNativeLogin do
@moduledoc """
The Response for Login 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.SuccessfulNativeLogin do
import Ory.Deserializer
def decode(value, options) do
value
|> deserialize(:session, :struct, Ory.Model.Session, options)
end
end