Skip to main content

create_browser_sign_in

Function create_browser_sign_in 

Source
pub(crate) async fn create_browser_sign_in(
    __arg0: State<AppState>,
    headers: HeaderMap,
) -> Response
Expand description

POST /xrpc/bot.did.createBrowserSignIn

Mints a ticket that signs a browser in as the account, and answers with the link that spends it, on the issuer’s host, and when it stops being live. See crate::oauth::browser.

Credential::AccountSelf, used as identity: the ticket is the account’s the presented agent token authenticates as, and it replaces any ticket that account already had. Refused while the e-stop is engaged, with nothing stored. The ticket is never logged.