Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<!DOCTYPE html>
<html>
<head>
<title>AWS Cognito App</title>
<script type="text/javascript" charset="utf-8" src="phonegap.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.3/jquery.mobile-1.4.3.min.css" />
</head>
<body>
<button id="btnLogin">Login with Facebook</button>
<button id="btnLogout">Logout</button>
<hr/>
<div style="overflow-y : scroll; height:200px"><span id="appConsole" style="color:green; word-wrap: break-word"></span></div>
<hr/>
<div style="overflow-y : scroll; height:200px"><span id="errorConsole" style="color:red; word-wrap: break-word"></span></div>
<script src="http://code.jquery.com/jquery-2.1.1.min.js" type="text/javascript"></script>
<script src="http://code.jquery.com/mobile/1.4.3/jquery.mobile-1.4.3.min.js"></script>
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.0.15.min.js"></script>
<script src="js/openfb.js" type="text/javascript"></script>
<script src="js/app.js" type="text/javascript"></script>
</body>
</html>
@pcoady

This comment has been minimized.

Copy link
Owner Author

@pcoady pcoady commented Sep 12, 2014

This is the file from the free tutorial at http://backspace.technology/learn-aws-cognito.html

@pcoady

This comment has been minimized.

Copy link
Owner Author

@pcoady pcoady commented Apr 3, 2015

The blog for this code is now maintained at http://blog.backspace.academy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment