Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,20 @@
* Generated by tsnapi — public API snapshot of `devframe/recipes/interactive-auth`
*/
// #region Interfaces
export interface CreateAuthBannerColorsOptions {
border: ColorFn;
title: ColorFn;
label: ColorFn;
code: ColorFn;
url: ColorFn;
}
export interface CreateAuthBannerOptions {
title?: string;
colors?: Partial<CreateAuthBannerColorsOptions>;
}
export interface CreateInteractiveAuthOptions {
clientAuthTokens?: string[];
banner?: (_: {
code: string;
url: string;
}) => void;
banner?: AuthBannerFunction;
onTrusted?: (_: {
session: DevframeNodeRpcSession;
authToken: string;
Expand All @@ -16,6 +24,14 @@ export interface CreateInteractiveAuthOptions {
}
// #endregion

// #region Types
export type AuthBannerFunction = (_: {
code: string;
url: string;
}) => void;
// #endregion

// #region Functions
export declare function createAuthBanner(_?: CreateAuthBannerOptions): AuthBannerFunction;
export declare function createInteractiveAuth(_: DevframeNodeContext, _?: CreateInteractiveAuthOptions): DevframeAuthHandler;
// #endregion
Loading