app

package
v0.0.0-...-f22d567 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	CognitoClient   *cognito.CognitoIdentityProvider
	UserPoolID      string
	AppClientID     string
	AppClientSecret string
}

App holds internals for auth flow.

func (*App) Login

func (a *App) Login(w http.ResponseWriter, r *http.Request)

Login handles login scenario.

func (*App) OTP

func (a *App) OTP(w http.ResponseWriter, r *http.Request)

OTP handles phone verification step.

func (*App) Register

func (a *App) Register(w http.ResponseWriter, r *http.Request)

Register handles sign in scenario.

func (*App) Username

func (a *App) Username(w http.ResponseWriter, r *http.Request)

Username handles username scenario.

Jump to

Keyboard shortcuts

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