supertokenslib

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: ISC Imports: 16 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) ClientSideScript

func (c Config) ClientSideScript(w http.ResponseWriter, r *http.Request) string

func (Config) CorsMiddleware

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

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()

Directories

Path Synopsis
server module

Jump to

Keyboard shortcuts

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