user

package
v0.0.0-...-21311fb Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WithEmail      = "email"
	WithGoogle     = "google"
	WithNoProvider = ""
)

Variables

This section is empty.

Functions

func EnsureUserAt

func EnsureUserAt(page *web.Page, URL string)

EnsureUserAt navigates to given URL and ensures that a user is logged in

Types

type User

type User struct {
	// contains filtered or unexported fields
}

User contains ui user information

func CreateUser

func CreateUser(page *web.Page, email string, password string) User

CreateUser returns an instance of User

func (*User) LoginWithEmail

func (u *User) LoginWithEmail()

LoginWithEmail logs in a user with email and password

func (*User) LoginWithGoogle

func (u *User) LoginWithGoogle()

LoginWithGoogle logs in a user with google

func (*User) Signout

func (u *User) Signout()

Signout logs out a user

Jump to

Keyboard shortcuts

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