Skip to content
This repository has been archived by the owner on Oct 7, 2019. It is now read-only.

Question abut token #12

Open
mstaniszczak opened this issue Feb 11, 2018 · 1 comment
Open

Question abut token #12

mstaniszczak opened this issue Feb 11, 2018 · 1 comment

Comments

@mstaniszczak
Copy link

mstaniszczak commented Feb 11, 2018

In application I should store token and use it in future for calls to Strava, or I should store code, and obtain token at lest on every new start of app? With sore token is problem, tat you not allow to access it via your class;-) I can remove "Bearer" from string representation of token but...

Edit: like I see for example in Strava library for python, they suggest to store token. So maybe getTokien will be good idea?;-) I can also serialize Token object:)

@alessionunzi
Copy link

You need to store the token so that it can be used for any future request.
You also need to remove it when the StravaUnauthorizedException is thrown because it means the token is no longer valid and the user must authenticate again.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants