MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / newState

Function newState

pkg/web/oauthclient/cookie_state.go:51–56  ·  view source on GitHub ↗
(next string)

Source from the content-addressed store, hash-verified

49}
50
51func newState(next string) state {
52 return state{
53 Secret: random.String(16),
54 Next: next,
55 }
56}
57
58func (oc *OAuthClient) getStateCookie(w http.ResponseWriter, r *http.Request) (state, error) {
59 s := state{}

Callers 1

HandleLoginMethod · 0.85

Calls 1

StringFunction · 0.92

Tested by

no test coverage detected