Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config represents authentication configuration.
func (*Config) GetPassword ¶
GetEmail is the getter for the password.
func (*Config) GetTokenStorageFilePath ¶
GetTokenStorageFilePath is the getter for the token storage file path.
func (*Config) ShouldTryOpeningBrowser ¶
ShouldTryOpeningBrowser is the getter for the disabled browser boolean.
func (*Config) ShouldUseLegacyAuthentication ¶
ShouldUseLegacyAuthentication is the getter for the legacy (programmatic) authentication boolean.
func (*Config) ShouldWriteTokensToDisk ¶
ShouldWriteTokensToDisk is the getter for the token writing disabled boolean.
type Option ¶
type Option func(*Config)
Option represents an authentication option
func WithLegacyCredentials ¶
WithLegacyCredentials is the authentication option to set legacy credentials.
func WithOpenBrowser ¶
WithOpenBrowser is the authentication option to toggle whether the browser should be opened for the device authorization flow URL.
func WithTokenStorageFilePath ¶
WithTokenStorageFilePath is the authentication option to set the token storage file path.
func WithTokenWriting ¶
WithTokenWritingDisabled is the authentication option to toggle whether tokens acquired through the device authorization flow should be written to disk.