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

Method clearCookieToken

api/token.go:234–245  ·  view source on GitHub ↗
(ctx context.Context, w http.ResponseWriter)

Source from the content-addressed store, hash-verified

232}
233
234func (a *API) clearCookieToken(ctx context.Context, w http.ResponseWriter) {
235 config := getConfig(ctx)
236 http.SetCookie(w, &http.Cookie{
237 Name: config.Cookie.Key,
238 Value: "",
239 Expires: time.Now().Add(-1 * time.Hour * 10),
240 MaxAge: -1,
241 Secure: true,
242 HttpOnly: true,
243 Path: "/",
244 })
245}

Callers 4

requireAuthenticationMethod · 0.95
parseJWTClaimsMethod · 0.95
LogoutMethod · 0.95
RefreshTokenGrantMethod · 0.95

Calls 1

getConfigFunction · 0.85

Tested by

no test coverage detected