Skip to main content

get_authorization

Function get_authorization 

Source
pub(crate) async fn get_authorization(
    __arg0: State<AppState>,
    headers: HeaderMap,
    query: Result<Query<GetAuthorizationQuery>, QueryRejection>,
) -> Response
Expand description

GET /xrpc/bot.did.getAuthorization

One decision by the pushed request it decides. Credential::AccountSelf: answered only when the decision is addressed to the account the presented token authenticates as, and answered as “not found” otherwise, so this is not a way to learn that somebody else has a sign-in in flight.