Skip to content

Commit e367c71

Browse files
committed
feat: add password expiry
1 parent def9549 commit e367c71

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

internal/github.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"fmt"
77
"io"
88
"net/http"
9+
"strconv"
910
"time"
1011
)
1112

@@ -44,6 +45,7 @@ func (h *AppCredentialHelper) Get(in []CredentialAttribute) ([]CredentialAttribu
4445
return []CredentialAttribute{
4546
{"username", "x-access-token"},
4647
{"password", tokenResponse.Token},
48+
{"password_expiry_utc", strconv.FormatInt(tokenResponse.ExpiresAt.Unix(), 10)},
4749
}, nil
4850
}
4951

0 commit comments

Comments
 (0)