1
0
mirror of https://github.com/volatiletech/authboss.git synced 2025-01-08 04:03:53 +02:00
authboss/xsrf.go

7 lines
184 B
Go
Raw Normal View History

2015-01-27 12:11:19 +02:00
package authboss
import "net/http"
// XSRF returns a token that should be written to forms to prevent xsrf attacks.
2015-01-28 03:34:55 +02:00
type XSRF func(http.ResponseWriter, *http.Request) (token string)