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_login.ex
Raw

lib/ory/model/successful_native_login.ex

# NOTE: This file is auto generated by OpenAPI Generator 7.7.0 (https://openapi-generator.tech).
# Do not edit this file manually.
defmodule Ory.Model.SuccessfulNativeLogin do
@moduledoc """
The Response for Login Flows via API
"""
@derive Jason.Encoder
defstruct [
:continue_with,
:session,
:session_token
]
@type t :: %__MODULE__{
:continue_with => [Ory.Model.ContinueWith.t] | nil,
:session => Ory.Model.Session.t,
:session_token => String.t | nil
}
alias Ory.Deserializer
def decode(value) do
value
|> Deserializer.deserialize(:continue_with, :list, Ory.Model.ContinueWith)
|> Deserializer.deserialize(:session, :struct, Ory.Model.Session)
end
end