mirror of
https://github.com/volatiletech/authboss.git
synced 2025-01-24 05:17:10 +02:00
a2ffe4f7c4
- Add context. - Add handler type. - Add new storers for client storage and sessions. - Add start of remember module.
17 lines
304 B
Go
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.")
|
|
}
|
|
}
|