AuthTabOptions¶
Configuration object for AuthTab styling and behavior. Created using AuthTabOptionsBuilder.
Overview¶
AuthTabOptions holds visual and behavioral settings for authentication Custom Tabs. All properties are optional—unset options use system or browser defaults.
Creating Instances¶
Always use AuthTabOptionsBuilder to create AuthTabOptions:
var options = new AuthTabOptionsBuilder()
.WithColorScheme(ColorScheme.Dark)
.WithCloseButtonIcon(CloseButtonIcon.Close)
.Build();
var result = await _authTab.LaunchAsync(url, redirectScheme, options);
Properties¶
ColorScheme¶
Color scheme used by AuthTab.
Remarks
- Possible values:
System,Light,Dark. - When
null, browser defaults are used.
LightColorSchemeOptions¶
Color overrides applied when light mode is active.
Remarks
- When
null, browser defaults are used.
DarkColorSchemeOptions¶
Color overrides applied when dark mode is active.
Remarks
- When
null, browser defaults are used.
DefaultColorSchemeOptions¶
Fallback color overrides used when mode-specific options are not applied.
Remarks
- When
null, browser defaults are used.
EphemeralBrowsingEnabled¶
Controls whether the auth session uses ephemeral browsing.
Remarks
- When
true, cookies and session data are cleared after the tab is closed. - When
null, browser defaults are used.
CloseButtonIcon¶
Icon style for the close button.
Remarks
- When
null, browser defaults are used.