authtest

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TEST_USER_ID  = int64(1)
	TEST_EMAIL    = "alice@example.com"
	TEST_USERNAME = "alice"
	TEST_PASSWORD = "password1234"
)
View Source
const TEST_CHALLENGE = "abcd1234"

Variables

This section is empty.

Functions

func NewAuthenticator

func NewAuthenticator(t *testing.T) authgo.Authenticator

func NewEmailVerifier

func NewEmailVerifier() authgo.EmailVerifier

func NewTestAccount

func NewTestAccount(t *testing.T, a authgo.Authenticator) *authgo.Account

func SignIn

func SignIn(t *testing.T, a authgo.Authenticator) (string, *authgo.Account)

func SignOut

func SignOut(t *testing.T, a authgo.Authenticator, token string)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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