server

package
v0.0.0-...-8498c2c Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSupabaseAuthClient

func GetSupabaseAuthClient(r *http.Request) (gotrue.Client, bool)

func GetSupabaseClient

func GetSupabaseClient(r *http.Request) (*supabase.Client, error)

func GetToken

func GetToken(r *http.Request) (string, bool)

func GetUser

func GetUser(r *http.Request) (*types.UserResponse, bool)

func NewServer

func NewServer(
	spb *supabase.Client,
) http.Handler

func RequiresAuth

func RequiresAuth(h http.Handler) http.Handler

Types

type RequestKey

type RequestKey int

type Validator

type Validator interface {
	Valid(ctx context.Context) (problems map[string]string)
}

Jump to

Keyboard shortcuts

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