Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
51
func
newState(next string) state {
52
return
state{
53
Secret: random.String(16),
54
Next: next,
55
}
56
}
57
58
func
(oc *OAuthClient) getStateCookie(w http.ResponseWriter, r *http.Request) (state, error) {
59
s := state{}
Callers
1
HandleLogin
Method · 0.85
Calls
1
String
Function · 0.92
Tested by
no test coverage detected