1
0
mirror of https://github.com/volatiletech/authboss.git synced 2025-01-24 05:17:10 +02:00
authboss/remember/remember_test.go
Aaron a2ffe4f7c4 Add many new files and types.
- Add context.
- Add handler type.
- Add new storers for client storage and sessions.
- Add start of remember module.
2015-01-10 22:54:31 -08:00

17 lines
304 B
Go

package remember
import (
"testing"
"gopkg.in/authboss.v0"
)
func TestMakeToken(t *testing.T) {
tok, err := R.New(authboss.NewContext(), "storage", "hello", "world", "5")
if err != nil {
t.Error("Unexpected error:", err)
} else if len(tok) == 0 {
t.Error("It should have made a token.")
}
}