Skip to content

Instantly share code, notes, and snippets.

View gjerlow's full-sized avatar

Stian G. Gjerløw gjerlow

View GitHub Profile
@gjerlow
gjerlow / keichainService.js
Last active June 25, 2019 23:02
Using ti.identity for keychain functionality in Titanium applications
const TiIdentity = require('ti.identity');
//Identifier of the application. The same as development team on provisioning profile
const appIdentifierPrefix = 'YOUR_IDENTIFIER';
//Create the Keychain Items
const keychainUn = TiIdentity.createKeychainItem({
identifier: Alloy.CFG.kc_user_identifier,
accessGroup: appIdentifierPrefix + '.' + Ti.App.id
});