mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-10 04:54:03 -08:00
docs(withings): correct url
This commit is contained in:
parent
097be31dc4
commit
375a901ca0
|
@ -129,7 +129,7 @@ func (s *Strava) getAccessToken() (string, error) {
|
|||
if acccessToken, OK := s.env.Cache().Get(StravaAccessToken); OK {
|
||||
return acccessToken, nil
|
||||
}
|
||||
// use cached refersh token to get new access token
|
||||
// use cached refresh token to get new access token
|
||||
if refreshToken, OK := s.env.Cache().Get(StravaRefreshToken); OK {
|
||||
if acccessToken, err := s.refreshToken(refreshToken); err == nil {
|
||||
return acccessToken, nil
|
||||
|
@ -137,7 +137,8 @@ func (s *Strava) getAccessToken() (string, error) {
|
|||
}
|
||||
// use initial refresh token from property
|
||||
refreshToken := s.props.GetString(properties.RefreshToken, "")
|
||||
if len(refreshToken) == 0 {
|
||||
// ignore an empty or default refresh token
|
||||
if len(refreshToken) == 0 || refreshToken == "111111111111111111111111111111" {
|
||||
return "", &AuthError{
|
||||
message: InvalidRefreshToken,
|
||||
}
|
||||
|
|
|
@ -67,4 +67,4 @@ The properties below are available for use in your template
|
|||
Now, go out and be active!
|
||||
|
||||
[templates]: /docs/configuration/templates
|
||||
[withings]: http://www.ithings.com/
|
||||
[withings]: https://www.withings.com/
|
||||
|
|
Loading…
Reference in a new issue