MCPcopy Create free account
hub / github.com/netlify/gotrue / TestToken

Function TestToken

api/token_test.go:27–40  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

25}
26
27func TestToken(t *testing.T) {
28 os.Setenv("GOTRUE_RATE_LIMIT_HEADER", "My-Custom-Header")
29 api, config, instanceID, err := setupAPIForTestForInstance()
30 require.NoError(t, err)
31
32 ts := &TokenTestSuite{
33 API: api,
34 Config: config,
35 instanceID: instanceID,
36 }
37 defer api.db.Close()
38
39 suite.Run(t, ts)
40}
41
42func (ts *TokenTestSuite) SetupTest() {
43 models.TruncateAll(ts.API.db)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…