Skip to content
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
1 change: 0 additions & 1 deletion ims/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ type Config struct {
// Access token information
type TokenInfo struct {
AccessToken string
Expires int //(response.ExpiresIn * time.Millisecond),
Valid bool
Info string
}
Expand Down
2 changes: 0 additions & 2 deletions ims/exchange.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ package ims

import (
"fmt"
"time"

"github.com/adobe/ims-go/ims"
)
Expand Down Expand Up @@ -62,6 +61,5 @@ func (i Config) ClusterExchange() (TokenInfo, error) {

return TokenInfo{
AccessToken: r.AccessToken,
Expires: int(r.ExpiresIn * time.Millisecond),
}, nil
}
1 change: 0 additions & 1 deletion ims/jwt_exchange.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,5 @@ func (i Config) AuthorizeJWTExchange() (TokenInfo, error) {

return TokenInfo{
AccessToken: r.AccessToken,
Expires: int(r.ExpiresIn * time.Millisecond),
}, nil
}
3 changes: 1 addition & 2 deletions ims/refresh.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ package ims

import (
"fmt"

"github.com/adobe/ims-go/ims"
"time"
)

func (i Config) validateRefreshConfig() error {
Expand Down Expand Up @@ -56,7 +56,6 @@ func (i Config) Refresh() (RefreshInfo, error) {
return RefreshInfo{
TokenInfo: TokenInfo{
AccessToken: r.AccessToken,
Expires: int(r.ExpiresIn * time.Second),
},
RefreshToken: r.RefreshToken,
}, nil
Expand Down