{"action":"created","issue":{"url":"https://api.github.com/repos/telenordigital/connect-ios-sdk/issues/21","repository_url":"https://api.github.com/repos/telenordigital/connect-ios-sdk","labels_url":"https://api.github.com/repos/telenordigital/connect-ios-sdk/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/telenordigital/connect-ios-sdk/issues/21/comments","events_url":"https://api.github.com/repos/telenordigital/connect-ios-sdk/issues/21/events","html_url":"https://github.com/telenordigital/connect-ios-sdk/issues/21","id":163109854,"number":21,"title":"Refresh token for Extension Support","user":{"login":"htarwara6245","id":10526402,"avatar_url":"https://avatars.githubusercontent.com/u/10526402?v=3","gravatar_id":"","url":"https://api.github.com/users/htarwara6245","html_url":"https://github.com/htarwara6245","followers_url":"https://api.github.com/users/htarwara6245/followers","following_url":"https://api.github.com/users/htarwara6245/following{/other_user}","gists_url":"https://api.github.com/users/htarwara6245/gists{/gist_id}","starred_url":"https://api.github.com/users/htarwara6245/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htarwara6245/subscriptions","organizations_url":"https://api.github.com/users/htarwara6245/orgs","repos_url":"https://api.github.com/users/htarwara6245/repos","events_url":"https://api.github.com/users/htarwara6245/events{/privacy}","received_events_url":"https://api.github.com/users/htarwara6245/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-06-30T08:30:58Z","updated_at":"2016-07-01T04:27:22Z","closed_at":null,"body":"Please take a look,I think your library doesn't support Extension.\r\n\r\nhttp://puu.sh/pLcU6/812fd03008.png\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/telenordigital/connect-ios-sdk/issues/comments/229851240","html_url":"https://github.com/telenordigital/connect-ios-sdk/issues/21#issuecomment-229851240","issue_url":"https://api.github.com/repos/telenordigital/connect-ios-sdk/issues/21","id":229851240,"user":{"login":"htarwara6245","id":10526402,"avatar_url":"https://avatars.githubusercontent.com/u/10526402?v=3","gravatar_id":"","url":"https://api.github.com/users/htarwara6245","html_url":"https://github.com/htarwara6245","followers_url":"https://api.github.com/users/htarwara6245/followers","following_url":"https://api.github.com/users/htarwara6245/following{/other_user}","gists_url":"https://api.github.com/users/htarwara6245/gists{/gist_id}","starred_url":"https://api.github.com/users/htarwara6245/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htarwara6245/subscriptions","organizations_url":"https://api.github.com/users/htarwara6245/orgs","repos_url":"https://api.github.com/users/htarwara6245/repos","events_url":"https://api.github.com/users/htarwara6245/events{/privacy}","received_events_url":"https://api.github.com/users/htarwara6245/received_events","type":"User","site_admin":false},"created_at":"2016-07-01T04:27:21Z","updated_at":"2016-07-01T04:27:21Z","body":"Yeah,I know that situation.I will control it with NSUserDefault.\r\nIf the user signed in,the extension will check balance.If not,it will said to open the app and sign in.But,we are talking about refreshing user session right?\r\n\r\nFrom what you explained about requestAccess(),there are 3 conditions.\r\n\r\n- If it is not expired, you will get the one saved in keychain.\r\n- If it is expired, but you have a refresh token, it will refresh the accessToken for you and give you that.\r\n- If you don't have an accessToken or a refreshToken (if a user is not signed in) then it will sign in the user and then give you the accessToken.\r\n\r\nWhat I want was the support for first and second condition which doesn't need to appear webview(Connect Sign in View) over UIApplication(Main App) if I am not wrong.\r\n\r\nFor the third one,it will be error callback.And I will check that error callback and notify the user if he or she need to log in again at Application from Extension.\r\n\r\nSo,if you can,I mean it was just a suggestion.Will you implement another SDKs which was only include support for Extension."}}
{"actor":{"display_login":"htarwara6245"}}