nraboy / ng-cordova-facebook-example

Ionic Framework ngCordova Oauth Example for Facebook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Token Refresh

rrubio opened this issue · comments

Hi Guys,

How would i go about refreshing the token with ng-cordova? this is so the user doesn't have to re-login each time token times out.

Cheers in advance.

Oauth tokens should never be refreshable in a client facing application. Because of this, ng-cordova-oauth uses the implicit grant type defined in the Oauth spec as being unable to request refresh tokens to refresh an access token.

I'd recommend configuring your own web server and have it manage explicit grant types for refreshing tokens for your application.

Best,

Cheers mate, makes sense.