Telefonica / webview-bridge

Novum JavaScript Bridge
MIT License
26 stars 7 forks source link

Pass old accessToken to native app #28

Closed atabel closed 4 years ago

atabel commented 4 years ago

Native app needs to know if a renew to server is needed. If native app receives an accessToken different from the one it has, a renew is not needed, just respond with the current native accessToken. If the token received is the same that the one the native app has, it means a renew is needed, so native app needs to go server (/token) to obtain a new accessToken