Skip to content

Commit 147db07

Browse files
appleboyclaude
andcommitted
refactor(tokenstore): migrate to sdk-go shared module
- Replace local tokenstore package with sdk-go module dependency - Update import paths from device-cli/tokenstore to sdk-go/tokenstore - Remove local tokenstore directory now provided by sdk-go - Move go-keyring from direct to indirect dependency Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 59d8b0e commit 147db07

13 files changed

Lines changed: 6 additions & 1026 deletions

go.mod

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ require (
77
charm.land/bubbletea/v2 v2.0.1
88
charm.land/lipgloss/v2 v2.0.0
99
github.com/appleboy/go-httpretry v0.11.0
10+
github.com/go-authgate/sdk-go v0.0.0-20260308143712-376f312901c8
1011
github.com/google/uuid v1.6.0
1112
github.com/joho/godotenv v1.5.1
12-
github.com/zalando/go-keyring v0.2.6
1313
golang.org/x/oauth2 v0.35.0
1414
)
1515

@@ -30,6 +30,7 @@ require (
3030
github.com/muesli/cancelreader v0.2.2 // indirect
3131
github.com/rivo/uniseg v0.4.7 // indirect
3232
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
33+
github.com/zalando/go-keyring v0.2.6 // indirect
3334
golang.org/x/sync v0.19.0 // indirect
3435
golang.org/x/sys v0.41.0 // indirect
3536
)

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ github.com/danieljoos/wincred v1.2.2 h1:774zMFJrqaeYCK2W57BgAem/MLi6mtSE47MB6BOJ
3232
github.com/danieljoos/wincred v1.2.2/go.mod h1:w7w4Utbrz8lqeMbDAK0lkNJUv5sAOkFi7nd/ogr0Uh8=
3333
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
3434
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
35+
github.com/go-authgate/sdk-go v0.0.0-20260308143712-376f312901c8 h1:cqsgCsNlvRew75W5gzXyzZcdzqpvwMxX2AizrnsT01M=
36+
github.com/go-authgate/sdk-go v0.0.0-20260308143712-376f312901c8/go.mod h1:ZRyXFKqO8HqWXIAqIwhjSxJ0DE3RckTVn9UtlX7MvJ8=
3537
github.com/godbus/dbus/v5 v5.1.0 h1:4KLkAxT3aOY8Li4FRJe/KvhoNFFxo0m6fNuFUO8QJUk=
3638
github.com/godbus/dbus/v5 v5.1.0/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
3739
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 h1:El6M4kTTCOh6aBiKaUGG7oYTSPP8MxqL4YI3kZKwcP4=

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"golang.org/x/oauth2"
2424

2525
tea "charm.land/bubbletea/v2"
26-
"github.com/go-authgate/device-cli/tokenstore"
26+
"github.com/go-authgate/sdk-go/tokenstore"
2727
"github.com/go-authgate/device-cli/tui"
2828
)
2929

main_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"time"
1515

1616
retry "github.com/appleboy/go-httpretry"
17-
"github.com/go-authgate/device-cli/tokenstore"
17+
"github.com/go-authgate/sdk-go/tokenstore"
1818
"github.com/go-authgate/device-cli/tui"
1919
)
2020

tokenstore/file_store.go

Lines changed: 0 additions & 177 deletions
This file was deleted.

0 commit comments

Comments
 (0)