session

package
v0.19.15 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExpiresInSeconds = 7200
)

Variables

This section is empty.

Functions

func Init

func Init(ctx context.Context) (s sessionService, err error)

Types

type AccessToken

type AccessToken struct {
	Token     string    `json:"token"`
	ExpiresIn int       `json:"expires_in"`
	Expires   time.Time `json:"expires"`
}

type AccessTokenSession

type AccessTokenSession struct {
	AccessToken AccessToken `json:"access_token"`
	AccountId   uuid.UUID   `json:"account_id"`
}

Jump to

Keyboard shortcuts

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