Module Cephalopod_models.Com_Atproto_Server_CreateSession

lexicon "com.atproto.server.createSession"

def main

type main_input = {
  1. identifier : string;
    (*

    Handle or other identifier supported by the server for the authenticating user.

    *)
  2. password : string;
  3. authFactorToken : string option;
  4. allowTakendown : bool option;
    (*

    When true, instead of throwing error for takendown accounts, a valid response with a narrow scoped token will be returned

    *)
}
val show_main_input : main_input -> Ppx_deriving_runtime.string
val main_input_to_value : main_input -> Cephalopod_dasl.Value.t
type main_output = {
  1. accessJwt : string;
  2. refreshJwt : string;
  3. handle : string;
    (*

    format: "Handle"

    *)
  4. did : string;
    (*

    format: "Did"

    *)
  5. didDoc : Cephalopod_dasl.Value.t option;
  6. email : string option;
  7. emailConfirmed : bool option;
  8. emailAuthFactor : bool option;
  9. active : bool option;
  10. status : string option;
    (*

    If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted. known values: "takendown"; "suspended"; "deactivated"

    *)
}
val show_main_output : main_output -> Ppx_deriving_runtime.string
val main_output_of_value : main_output Cephalopod_dasl.Value.Util.conv
val main_output_to_value : main_output -> Cephalopod_dasl.Value.t
type main_error = [
  1. | `AccountTakedown
  2. | `AuthFactorTokenRequired
]
val show_main_error : main_error -> Ppx_deriving_runtime.string

Create an authentication session.