Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Kabin Wang
572 PointsHow do I add a sign in automatically next time feature?
How do I add a sign in automatically next time feature to an app that signs in with registered email/pw?
2 Answers
Amit Bijlani
Treehouse Guest TeacherYou would have the store the username / password within the app. The secure method for storing the username / password would be to store it in the keychain. When the user re-opens the app you can retrieve that info from the keychain. The easiest way to use the keychain is by including this library SSKeychain.
Kabin Wang
572 PointsHey thanks a lot, first time making an app :P