1
0
mirror of https://github.com/volatiletech/authboss.git synced 2025-02-01 13:17:43 +02:00
authboss/xsrf.go

7 lines
184 B
Go
Raw Normal View History

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