lemmy_login: Log into lemmy.

View source: R/http-methods.R

lemmy_loginR Documentation

Log into lemmy.

Description

HTTP.POST /user/login

Usage

lemmy_login(
  username_or_email,
  password,
  totp_2fa_token = NULL,
  .lemmy_instance = getOption("lemmy_instance", "https://lemmy.world")
)

Arguments

username_or_email

A character value.

password

A character value.

totp_2fa_token

(Optional) A character value.

.lemmy_instance

Default: "https://lemmy.world". Change the default instance by setting the lemmy_instance options().

Value

A list of length 3:

<list>
|-jwt: (Optional) A character value
|-registration_created: A logical value
`-verify_email_sent: A logical value

remmy documentation built on July 26, 2023, 5:37 p.m.