auth

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmailValidation

func EmailValidation(email string) bool

Validates that a given string represents a valid email address

func GetBaseConfigPath

func GetBaseConfigPath(path string) (string, error)

func GetCreds

func GetCreds(configPath string) (models.Credentials, error)

Get credentials from JSON file

func ListenForPlaidCallback

func ListenForPlaidCallback() (string, error)

Function opens a temporary local webserver, to wait for the Plaid public token received after Link flow completion

func ReadPassword

func ReadPassword(prompt string) (string, error)

Function will read a password without echoing the user input in terminal

func RemoveCreds

func RemoveCreds(configPath string) error

Remove credentials from local machine

func StoreTokens

func StoreTokens(data models.Credentials, configPath string) error

Store auth tokens in a credentials file

func ValidatePasswordHash

func ValidatePasswordHash(hash, password string) error

Validates a password against local database hash

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL