Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add v2 in path for v2 alpha #53

Merged
merged 1 commit into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion claims_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

"aidanwoods.dev/go-paseto"
"aidanwoods.dev/go-paseto/v2"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module aidanwoods.dev/go-paseto
module aidanwoods.dev/go-paseto/v2

go 1.18

Expand Down
2 changes: 1 addition & 1 deletion keys_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"crypto/rand"
"testing"

"aidanwoods.dev/go-paseto"
"aidanwoods.dev/go-paseto/v2"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion message.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package paseto
import (
"strings"

"aidanwoods.dev/go-paseto/internal/encoding"
"aidanwoods.dev/go-paseto/v2/internal/encoding"
t "aidanwoods.dev/go-result"
)

Expand Down
2 changes: 1 addition & 1 deletion parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package paseto_test
import (
"testing"

"aidanwoods.dev/go-paseto"
"aidanwoods.dev/go-paseto/v2"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion token_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

"aidanwoods.dev/go-paseto"
"aidanwoods.dev/go-paseto/v2"
"github.com/stretchr/testify/require"
)

Expand Down
6 changes: 3 additions & 3 deletions v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package paseto
import (
"crypto/ed25519"

"aidanwoods.dev/go-paseto/internal/encoding"
"aidanwoods.dev/go-paseto/internal/hashing"
"aidanwoods.dev/go-paseto/internal/random"
"aidanwoods.dev/go-paseto/v2/internal/encoding"
"aidanwoods.dev/go-paseto/v2/internal/hashing"
"aidanwoods.dev/go-paseto/v2/internal/random"
t "aidanwoods.dev/go-result"
"golang.org/x/crypto/chacha20poly1305"
)
Expand Down
4 changes: 2 additions & 2 deletions v2_keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"crypto/ed25519"
"encoding/hex"

"aidanwoods.dev/go-paseto/internal/encoding"
"aidanwoods.dev/go-paseto/internal/random"
"aidanwoods.dev/go-paseto/v2/internal/encoding"
"aidanwoods.dev/go-paseto/v2/internal/random"
t "aidanwoods.dev/go-result"
)

Expand Down
4 changes: 2 additions & 2 deletions v3.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"crypto/sha512"
"math/big"

"aidanwoods.dev/go-paseto/internal/encoding"
"aidanwoods.dev/go-paseto/internal/random"
"aidanwoods.dev/go-paseto/v2/internal/encoding"
"aidanwoods.dev/go-paseto/v2/internal/random"
t "aidanwoods.dev/go-result"
)

Expand Down
4 changes: 2 additions & 2 deletions v3_keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"io"
"math/big"

"aidanwoods.dev/go-paseto/internal/encoding"
"aidanwoods.dev/go-paseto/internal/random"
"aidanwoods.dev/go-paseto/v2/internal/encoding"
"aidanwoods.dev/go-paseto/v2/internal/random"
t "aidanwoods.dev/go-result"
"golang.org/x/crypto/hkdf"
)
Expand Down
6 changes: 3 additions & 3 deletions v4.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"crypto/ed25519"
"crypto/hmac"

"aidanwoods.dev/go-paseto/internal/encoding"
"aidanwoods.dev/go-paseto/internal/hashing"
"aidanwoods.dev/go-paseto/internal/random"
"aidanwoods.dev/go-paseto/v2/internal/encoding"
"aidanwoods.dev/go-paseto/v2/internal/hashing"
"aidanwoods.dev/go-paseto/v2/internal/random"
t "aidanwoods.dev/go-result"
"golang.org/x/crypto/chacha20"
)
Expand Down
6 changes: 3 additions & 3 deletions v4_keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package paseto
import (
"crypto/ed25519"

"aidanwoods.dev/go-paseto/internal/encoding"
"aidanwoods.dev/go-paseto/internal/hashing"
"aidanwoods.dev/go-paseto/internal/random"
"aidanwoods.dev/go-paseto/v2/internal/encoding"
"aidanwoods.dev/go-paseto/v2/internal/hashing"
"aidanwoods.dev/go-paseto/v2/internal/random"
t "aidanwoods.dev/go-result"
)

Expand Down
2 changes: 1 addition & 1 deletion vectors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"os"
"testing"

"aidanwoods.dev/go-paseto"
"aidanwoods.dev/go-paseto/v2"
ty "aidanwoods.dev/go-result"
"github.com/stretchr/testify/require"
)
Expand Down
Loading