supertokenslib

package module
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: ISC Imports: 19 Imported by: 1

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

Directories

Path Synopsis
server module

Jump to

Keyboard shortcuts

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