supertokenslib

package module
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: ISC Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	PlainUI               bool
	ConnectionURI         string
	APIKey                string
	AppName               string
	APIDomain             string
	WebsiteDomain         string
	APIBasePath           string
	WebsiteBasePath       string
	SuperTokensWebLibBase string
	UserSignedUp          func(string, string) // userId, userEmail
	UserSignedIn          func(string, string) // userId, userEmail
}

func (Config) GetUser

func (c Config) GetUser(w http.ResponseWriter, r *http.Request) (userid string, userEmail string, exists bool)

func (Config) Init

func (c Config) Init()

func (Config) Middleware added in v0.2.0

func (c Config) Middleware(next http.Handler) http.Handler

Jump to

Keyboard shortcuts

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