commit | 6d4eed4495a291c9f2447c7dac779c9b08a2e2ab | [log] [tgz] |
---|---|---|
author | Nikolay Turpitko <nikolay@turpitko.com> | Fri Mar 06 14:54:39 2015 +0600 |
committer | Andrew Gerrand <adg@golang.org> | Tue Mar 10 04:54:57 2015 +0000 |
tree | adc33ba1d3af9472b8c7dbee14689217ac978a45 | |
parent | 54a4310f8559fb658d8efae3d3dc9dcdb627736a [diff] |
oauth2: fix expires_in for PayPal PayPal returns "expires_in" token field as string, not integer. So, current implementation cannot unmarshal json of tokenJSON due type mismatch. This patch fixes the issue declaring field as interface{} in tokenJSON and performing type switch in "func (e *tokenJSON) expiry()". Related to issue #41. Change-Id: I69301e08c8a56fca049ca47906e32528cd22aef9 Reviewed-on: https://go-review.googlesource.com/6924 Reviewed-by: Andrew Gerrand <adg@golang.org>