feat(cli): gateway auth methods

This commit is contained in:
Daniel Hougaard
2025-06-03 21:35:54 +04:00
parent 274952544f
commit 400157a468
9 changed files with 298 additions and 122 deletions
+4
View File
@@ -54,6 +54,10 @@ func NewGateway(identityToken string) (Gateway, error) {
}, nil
}
func (g *Gateway) UpdateIdentityAccessToken(accessToken string) {
g.httpClient.SetAuthToken(accessToken)
}
func (g *Gateway) ConnectWithRelay() error {
relayDetails, err := api.CallRegisterGatewayIdentityV1(g.httpClient)
if err != nil {