Documentation ¶
Index ¶
- type Session
- func (s *Session) DoLogin(ctx context.Context, userID, password string) error
- func (s *Session) Get(c echo.Context) (*ttnpb.UserSession, error)
- func (s *Session) GetUser(c echo.Context) (*ttnpb.User, error)
- func (s *Session) RemoveAuthCookie(c echo.Context)
- func (s *Session) UpdateAuthCookie(c echo.Context, update func(value *auth.CookieShape) error) error
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session struct {
Store Store
}
Session is the session helper.
func (*Session) RemoveAuthCookie ¶
RemoveAuthCookie deletes the authentication cookie.
func (*Session) UpdateAuthCookie ¶
func (s *Session) UpdateAuthCookie(c echo.Context, update func(value *auth.CookieShape) error) error
UpdateAuthCookie updates the current authentication cookie.
Click to show internal directories.
Click to hide internal directories.