We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f84aaf6 commit 4055af0Copy full SHA for 4055af0
users/csrf/csrf.go
@@ -20,6 +20,7 @@ type csrfPayload struct {
20
// newSessionCookie creates a new encrypted cookie for the given UserSession
21
func (m *Module) New(state string) (string, error) {
22
b, err := json.Marshal(&csrfPayload{
23
+ State: state,
24
Token: token.New32(),
25
ExpireAfter: time.Now().Add(m.csrfValidityDuration),
26
})
0 commit comments