mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2025-01-11 04:25:52 +00:00
ba49f4ea72
* Adding pkce settings. * 0.20.0-pkce.1
21 lines
583 B
TypeScript
21 lines
583 B
TypeScript
// 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;
|
|
};
|