mirror of
https://github.com/twofas/2fas-server.git
synced 2024-12-04 16:20:13 +01:00
code review
This commit is contained in:
parent
0d62c198b9
commit
7b629babcf
@ -142,7 +142,7 @@ func TestSignAndVerify(t *testing.T) {
|
|||||||
token, err := serviceWithAnotherKey.SignAndEncode(Message{
|
token, err := serviceWithAnotherKey.SignAndEncode(Message{
|
||||||
ConnectionID: uuid.New().String(),
|
ConnectionID: uuid.New().String(),
|
||||||
ExpiresAt: now.Add(-time.Hour),
|
ExpiresAt: now.Add(-time.Hour),
|
||||||
ConnectionType: ConnectionTypeBrowserExtensionWait,
|
ConnectionType: ConnectionTypeBrowserExtensionProxy,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
|
@ -125,7 +125,7 @@ func TestSignAndVerify(t *testing.T) {
|
|||||||
token, err := serviceWithAnotherKey.SignAndEncode(sign.Message{
|
token, err := serviceWithAnotherKey.SignAndEncode(sign.Message{
|
||||||
ConnectionID: uuid.New().String(),
|
ConnectionID: uuid.New().String(),
|
||||||
ExpiresAt: now.Add(-time.Hour),
|
ExpiresAt: now.Add(-time.Hour),
|
||||||
ConnectionType: sign.ConnectionTypeBrowserExtensionWait,
|
ConnectionType: sign.ConnectionTypeBrowserExtensionProxy,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user