lemmy-js-client/src/types/AuthenticateWithOauth.ts

22 lines
583 B
TypeScript
Raw Normal View History

// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { OAuthProviderId } from "./OAuthProviderId";
/**
* Logging in with an OAuth 2.0 authorization
*/
export type AuthenticateWithOauth = {
code: string;
pkce_code_verifier?: string;
oauth_provider_id: OAuthProviderId;
redirect_uri: string;
show_nsfw?: boolean;
/**
* Username is mandatory at registration time
*/
username?: string;
/**
* An answer is mandatory if require application is enabled on the server
*/
answer?: string;
};