Skip to content

Commit

Permalink
access: response expires in should be int, not string
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeneas Rekkas (arekkas) committed Dec 6, 2016
1 parent 0151f1e commit a2080a3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions access_response.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package fosite

import (
"strconv"
"strings"
"time"
)
Expand All @@ -23,7 +22,7 @@ func (a *AccessResponse) SetScopes(scopes Arguments) {
}

func (a *AccessResponse) SetExpiresIn(expiresIn time.Duration) {
a.SetExtra("expires_in", strconv.FormatInt(int64(expiresIn/time.Second), 10))
a.SetExtra("expires_in", int64(expiresIn/time.Second))
}

func (a *AccessResponse) SetExtra(key string, value interface{}) {
Expand Down

0 comments on commit a2080a3

Please sign in to comment.