1
0
mirror of https://github.com/volatiletech/authboss.git synced 2024-11-24 08:42:17 +02:00
authboss/xsrf.go
2015-01-27 17:34:55 -08:00

7 lines
184 B
Go

package authboss
import "net/http"
// XSRF returns a token that should be written to forms to prevent xsrf attacks.
type XSRF func(http.ResponseWriter, *http.Request) (token string)