Skip to content

Commit 6ba7c59

Browse files
authored
fix: update interactive-auth API snapshot for banner customization (#357)
1 parent cc3bb08 commit 6ba7c59

1 file changed

Lines changed: 20 additions & 4 deletions

File tree

‎tests/__snapshots__/tsnapi/devframe/recipes/interactive-auth.snapshot.d.ts‎

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,20 @@
22
* Generated by tsnapi — public API snapshot of `devframe/recipes/interactive-auth`
33
*/
44
// #region Interfaces
5+
export interface CreateAuthBannerColorsOptions {
6+
border: ColorFn;
7+
title: ColorFn;
8+
label: ColorFn;
9+
code: ColorFn;
10+
url: ColorFn;
11+
}
12+
export interface CreateAuthBannerOptions {
13+
title?: string;
14+
colors?: Partial<CreateAuthBannerColorsOptions>;
15+
}
516
export interface CreateInteractiveAuthOptions {
617
clientAuthTokens?: string[];
7-
banner?: (_: {
8-
code: string;
9-
url: string;
10-
}) => void;
18+
banner?: AuthBannerFunction;
1119
onTrusted?: (_: {
1220
session: DevframeNodeRpcSession;
1321
authToken: string;
@@ -16,6 +24,14 @@ export interface CreateInteractiveAuthOptions {
1624
}
1725
// #endregion
1826

27+
// #region Types
28+
export type AuthBannerFunction = (_: {
29+
code: string;
30+
url: string;
31+
}) => void;
32+
// #endregion
33+
1934
// #region Functions
35+
export declare function createAuthBanner(_?: CreateAuthBannerOptions): AuthBannerFunction;
2036
export declare function createInteractiveAuth(_: DevframeNodeContext, _?: CreateInteractiveAuthOptions): DevframeAuthHandler;
2137
// #endregion

0 commit comments

Comments
 (0)