MCPcopy Index your code
hub / github.com/supabase/auth / NewAPI

Function NewAPI

internal/api/api.go:79–81  ·  view source on GitHub ↗

NewAPI instantiates a new REST API

(globalConfig *conf.GlobalConfiguration, db *storage.Connection, opt ...Option)

Source from the content-addressed store, hash-verified

77
78// NewAPI instantiates a new REST API
79func NewAPI(globalConfig *conf.GlobalConfiguration, db *storage.Connection, opt ...Option) *API {
80 return NewAPIWithVersion(globalConfig, db, defaultVersion, opt...)
81}
82
83func (a *API) deprecationNotices() {
84 config := a.config

Callers 2

TestSAMLMetadataWithAPIFunction · 0.85
newSAMLTestAPIFunction · 0.85

Calls 1

NewAPIWithVersionFunction · 0.85

Tested by 2

TestSAMLMetadataWithAPIFunction · 0.68
newSAMLTestAPIFunction · 0.68