Skip to content

Commit

Permalink
todos amended
Browse files Browse the repository at this point in the history
  • Loading branch information
thejoeker12 committed Jun 21, 2024
1 parent 9766ac4 commit 6b97776
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions jamf/jamfprointegration/auth_oauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,29 +88,29 @@ func (a *oauth) getNewToken() error {
return nil
}

// TODO migrate strings
// TODO func comment
func (a *oauth) getTokenString() string {
return a.token
}

// TODO migrate strings
// TODO func comment
func (a *oauth) getExpiryTime() time.Time {
return a.expiryTime
}

// Utils

// TODO migrate strings
// TODO func comment
func (a *oauth) tokenExpired() bool {
return a.expiryTime.Before(time.Now())
}

// TODO migrate strings
// TODO func comment
func (a *oauth) tokenInBuffer() bool {
return time.Until(a.expiryTime) <= a.bufferPeriod
}

// TODO migrate strings
// TODO func comment
func (a *oauth) tokenEmpty() bool {
return a.token == ""
}

0 comments on commit 6b97776

Please sign in to comment.