MCPcopy Index your code
hub / github.com/gotify/server / tokenFromQuery

Method tokenFromQuery

auth/authentication.go:109–111  ·  view source on GitHub ↗
(ctx *gin.Context)

Source from the content-addressed store, hash-verified

107}
108
109func (a *Auth) tokenFromQuery(ctx *gin.Context) string {
110 return ctx.Request.URL.Query().Get("token")
111}
112
113func (a *Auth) tokenFromXGotifyHeader(ctx *gin.Context) string {
114 return ctx.Request.Header.Get(headerName)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected