session

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

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

func New

func New(client *api.ClientWithResponses, projectID string, frontendAPI string, shortSessionCookieName string, issuer string) (*Impl, error)

New returns new user client

func (*Impl) GetCurrentUser

func (i *Impl) GetCurrentUser(shortSession string) (*entity.User, error)

func (*Impl) ValidateShortSessionValue

func (i *Impl) ValidateShortSessionValue(shortSession string) (*entity.User, error)

type Session

type Session interface {
	ValidateShortSessionValue(shortSession string) (*entity.User, error)
	GetCurrentUser(shortSession string) (*entity.User, error)
}

Jump to

Keyboard shortcuts

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