{"action":"created","issue":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-net/issues/919","repository_url":"https://api.github.com/repos/couchbase/couchbase-lite-net","labels_url":"https://api.github.com/repos/couchbase/couchbase-lite-net/issues/919/labels{/name}","comments_url":"https://api.github.com/repos/couchbase/couchbase-lite-net/issues/919/comments","events_url":"https://api.github.com/repos/couchbase/couchbase-lite-net/issues/919/events","html_url":"https://github.com/couchbase/couchbase-lite-net/issues/919","id":267079125,"number":919,"title":"Tokens not being refreshed correctly with built in oidc authenticator","user":{"login":"tura08","id":21032005,"avatar_url":"https://avatars3.githubusercontent.com/u/21032005?v=4","gravatar_id":"","url":"https://api.github.com/users/tura08","html_url":"https://github.com/tura08","followers_url":"https://api.github.com/users/tura08/followers","following_url":"https://api.github.com/users/tura08/following{/other_user}","gists_url":"https://api.github.com/users/tura08/gists{/gist_id}","starred_url":"https://api.github.com/users/tura08/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tura08/subscriptions","organizations_url":"https://api.github.com/users/tura08/orgs","repos_url":"https://api.github.com/users/tura08/repos","events_url":"https://api.github.com/users/tura08/events{/privacy}","received_events_url":"https://api.github.com/users/tura08/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-10-20T06:52:08Z","updated_at":"2017-10-24T00:54:11Z","closed_at":null,"author_association":"NONE","body":"CBL Version: 1.4.1-b0107\r\nDevice: Moto G5 Plus\r\nOS: Android 7.1\r\nSG version: 1.4.1(3;ddffd85)\r\n\r\nWe are facing an issue where tokens cannot be refreshed because the refresh token has expired. To replicate this, we log into our app against our OpenID Connect provider, wait the amount of time that the tokens take to expire (ours in 5 min) then quit the app, start the app again. We are presented with our login page again. Sync Gateway shows the following logs:\r\n\r\n```\r\nOctober 20th 2017, 14:37:40.506 | 2017-10-20T06:37:40.501Z HTTP: #317:     --> 401 Unable to refresh token.  (343.5 ms)\r\nOctober 20th 2017, 14:37:40.500 | 2017-10-20T06:37:40.500Z OIDC: Unsuccessful token refresh: invalid_grant: Refresh token expired\r\nOctober 20th 2017, 14:37:40.158 | 2017-10-20T06:37:40.158Z HTTP:  #317: GET /db/_oidc_refresh?refresh_token=******\r\n```\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-net/issues/comments/338838610","html_url":"https://github.com/couchbase/couchbase-lite-net/issues/919#issuecomment-338838610","issue_url":"https://api.github.com/repos/couchbase/couchbase-lite-net/issues/919","id":338838610,"user":{"login":"tura08","id":21032005,"avatar_url":"https://avatars3.githubusercontent.com/u/21032005?v=4","gravatar_id":"","url":"https://api.github.com/users/tura08","html_url":"https://github.com/tura08","followers_url":"https://api.github.com/users/tura08/followers","following_url":"https://api.github.com/users/tura08/following{/other_user}","gists_url":"https://api.github.com/users/tura08/gists{/gist_id}","starred_url":"https://api.github.com/users/tura08/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tura08/subscriptions","organizations_url":"https://api.github.com/users/tura08/orgs","repos_url":"https://api.github.com/users/tura08/repos","events_url":"https://api.github.com/users/tura08/events{/privacy}","received_events_url":"https://api.github.com/users/tura08/received_events","type":"User","site_admin":false},"created_at":"2017-10-24T00:54:11Z","updated_at":"2017-10-24T00:54:11Z","author_association":"NONE","body":"So what is the process for refreshing the token in the library. When does it happen? Is it triggered on a timer?"}}
{"actor":{"display_login":"tura08"}}