{"action":"created","issue":{"url":"https://api.github.com/repos/urbanairship/react-native-module/issues/114","repository_url":"https://api.github.com/repos/urbanairship/react-native-module","labels_url":"https://api.github.com/repos/urbanairship/react-native-module/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/urbanairship/react-native-module/issues/114/comments","events_url":"https://api.github.com/repos/urbanairship/react-native-module/issues/114/events","html_url":"https://github.com/urbanairship/react-native-module/issues/114","id":319010553,"number":114,"title":"Urban Airship overwrites session in keychain","user":{"login":"jacobcabantomski-ct","id":21041380,"avatar_url":"https://avatars1.githubusercontent.com/u/21041380?v=4","gravatar_id":"","url":"https://api.github.com/users/jacobcabantomski-ct","html_url":"https://github.com/jacobcabantomski-ct","followers_url":"https://api.github.com/users/jacobcabantomski-ct/followers","following_url":"https://api.github.com/users/jacobcabantomski-ct/following{/other_user}","gists_url":"https://api.github.com/users/jacobcabantomski-ct/gists{/gist_id}","starred_url":"https://api.github.com/users/jacobcabantomski-ct/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacobcabantomski-ct/subscriptions","organizations_url":"https://api.github.com/users/jacobcabantomski-ct/orgs","repos_url":"https://api.github.com/users/jacobcabantomski-ct/repos","events_url":"https://api.github.com/users/jacobcabantomski-ct/events{/privacy}","received_events_url":"https://api.github.com/users/jacobcabantomski-ct/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-30T19:42:06Z","updated_at":"2018-04-30T21:32:26Z","closed_at":"2018-04-30T21:28:20Z","author_association":"NONE","body":"Not sure if this belongs here or in https://github.com/urbanairship/ios-library\r\n\r\nWe are using https://github.com/oblador/react-native-keychain to store session information for our react-native app.\r\n\r\n```\r\n import * as Keychain from 'react-native-keychain';\r\n\r\n...\r\n\r\nconst token = 'someJWT';\r\nawait Keychain.setGenericPassword('session', token);\r\n\r\n...\r\n\r\nconst token = await Keychain.getGenericPassword();\r\n```\r\n\r\nWe recently added UrbanAirship to this app and noticed that on iOS `Keychain.getGenericPassword` is now returning a UUID v4 and not the expected JWT we stored. We believe this library is overriding that token with UrbanAirship's session ID.\r\n\r\nWe can change where we store that JWT token to not conflict with UrbanAirship, but it will invalidate all of our currently logged in mobile users. Is it possible to change/configure where this library is storing its session identifier?"},"comment":{"url":"https://api.github.com/repos/urbanairship/react-native-module/issues/comments/385535333","html_url":"https://github.com/urbanairship/react-native-module/issues/114#issuecomment-385535333","issue_url":"https://api.github.com/repos/urbanairship/react-native-module/issues/114","id":385535333,"user":{"login":"jacobcabantomski-ct","id":21041380,"avatar_url":"https://avatars1.githubusercontent.com/u/21041380?v=4","gravatar_id":"","url":"https://api.github.com/users/jacobcabantomski-ct","html_url":"https://github.com/jacobcabantomski-ct","followers_url":"https://api.github.com/users/jacobcabantomski-ct/followers","following_url":"https://api.github.com/users/jacobcabantomski-ct/following{/other_user}","gists_url":"https://api.github.com/users/jacobcabantomski-ct/gists{/gist_id}","starred_url":"https://api.github.com/users/jacobcabantomski-ct/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacobcabantomski-ct/subscriptions","organizations_url":"https://api.github.com/users/jacobcabantomski-ct/orgs","repos_url":"https://api.github.com/users/jacobcabantomski-ct/repos","events_url":"https://api.github.com/users/jacobcabantomski-ct/events{/privacy}","received_events_url":"https://api.github.com/users/jacobcabantomski-ct/received_events","type":"User","site_admin":false},"created_at":"2018-04-30T21:32:26Z","updated_at":"2018-04-30T21:32:26Z","author_association":"NONE","body":"Ah that makes sense, my mistake for putting this issue here. Thanks for the help and quick response @rlepinski "}}
{"actor":{"display_login":"jacobcabantomski-ct"}}