File tree Expand file tree Collapse file tree
tests/__snapshots__/tsnapi/devframe/recipes Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+ }
516export 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 ;
2036export declare function createInteractiveAuth ( _ : DevframeNodeContext , _ ?: CreateInteractiveAuthOptions ) : DevframeAuthHandler ;
2137// #endregion
You can’t perform that action at this time.
0 commit comments