entity

package
v0.0.0-...-c52fe67 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	ID        string
	UserID    string
	IDToken   string
	CreatedAt time.Time
}

type SessionClaims

type SessionClaims struct {
	Email         string `json:"email"`
	EmailVerified bool   `json:"email_verified"`
	PhoneNumber   string `json:"phone_number"`
	PhoneVerified bool   `json:"phone_verified"`
	Picture       string `json:"picture"`
	Blocked       bool   `json:"blocked"`
}

type State

type State struct {
	Redirect string `json:"redirect"`
	Code     string `json:"code"`
}

func NewStateFromEncodedString

func NewStateFromEncodedString(s string) (*State, error)

func (State) CompareCodes

func (s State) CompareCodes(comparedCode string, secret []byte) bool

func (State) GetEncodedString

func (s State) GetEncodedString() (string, error)

func (State) SetSecureCode

func (s State) SetSecureCode(code string, secret []byte)

Jump to

Keyboard shortcuts

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