Creating Account Settings
Instead of logging in a user immediately when the user opens your app, you might want to make authentication optional. If someone authenticates then the person gets a better experience (for example, you can show her name).
In this scenario, you might want to provide the user with the option of logging in to your app from the Settings charm. Let me show you how you can extend the Settings charm with Account settings that enable a user to sign in and out (see Figure 14.9).
The JavaScript file in Listing 14.3 sets up two settings flyouts: one flyout for Account Settings and one flyout ...
Get Windows® 8.1 Apps with HTML5 and JavaScript Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.