-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
AleBles
committed
Jan 24, 2017
1 parent
a6d335d
commit d8ad84a
Showing
4 changed files
with
242 additions
and
31 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,31 +22,6 @@ | |
|
||
<!-- Game we want to track --> | ||
<script type="text/javascript"> | ||
AWSCognito.config.region = 'eu-west-1'; | ||
|
||
var poolData = { | ||
UserPoolId : '', // Your user pool id here | ||
ClientId : '' // Your client id here | ||
}; | ||
var userPool = new AWSCognito.CognitoIdentityServiceProvider.CognitoUserPool(poolData); | ||
|
||
var attributeList = []; | ||
|
||
var dataEmail = { | ||
Name : 'email', | ||
Value : '[email protected]' // your email here | ||
}; | ||
var dataPhoneNumber = { | ||
Name : 'preferred_username', | ||
Value : 'TestUserSomething' // your phone number here with +country code and no delimiters in front | ||
}; | ||
var attributeEmail = new AWSCognito.CognitoIdentityServiceProvider.CognitoUserAttribute(dataEmail); | ||
var attributePhoneNumber = new AWSCognito.CognitoIdentityServiceProvider.CognitoUserAttribute(dataPhoneNumber); | ||
|
||
attributeList.push(attributeEmail); | ||
attributeList.push(attributePhoneNumber); | ||
|
||
|
||
var game = new Phaser.Game(800, 600, Phaser.AUTO, 'game-container', { init: init, create: create, preload: preload}); | ||
Phaser.Device.whenReady(function () { | ||
game.plugins.add(Fabrique.Plugins.Cognito); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters