auth

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 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 Handler

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

Handler serves auth-related HTTP endpoints.

func (*Handler) Logout

func (h *Handler) Logout(c *echo.Context) error

func (*Handler) Me

func (h *Handler) Me(c *echo.Context) error

Me returns the current user; requires session middleware (enforced by the route group).

func (*Handler) OAuthAuthorize

func (h *Handler) OAuthAuthorize(c *echo.Context) error

func (*Handler) OAuthCallback

func (h *Handler) OAuthCallback(c *echo.Context) error

func (*Handler) RegisterRoutes

func (h *Handler) RegisterRoutes(e *echo.Echo)

func (*Handler) SendOTP

func (h *Handler) SendOTP(c *echo.Context) error

func (*Handler) VerifyOTP

func (h *Handler) VerifyOTP(c *echo.Context) error

type SessionCookieConfig

type SessionCookieConfig struct {
	Name   string
	Secure bool
	TTL    time.Duration
}

SessionCookieConfig controls how the session cookie is set in the browser.

Jump to

Keyboard shortcuts

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