Skip to content

Commit

Permalink
Lowercase all emails used for auth (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
BellringerQuinn authored Jun 27, 2024
1 parent cc9f4e1 commit ba92bca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Assets/Sequence/SequenceSDK/Authentication/AWSEmailSignIn.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public AWSEmailSignIn(string region, string cognitoClientId, string nonce)
/// <returns></returns>
public async Task<string> SignIn(string email)
{
email = email.ToLower();
using AmazonCognitoIdentityProviderClient client = new AmazonCognitoIdentityProviderClient(new AnonymousAWSCredentials(), RegionEndpoint.GetBySystemName(_region));
InitiateAuthRequest request = new InitiateAuthRequest
{
Expand Down Expand Up @@ -70,6 +71,7 @@ public async Task<string> SignIn(string email)
/// <returns></returns>
public async Task<string> Login(string challengeSession, string email, string code, string sessionWalletAddress = "")
{
email = email.ToLower();
using AmazonCognitoIdentityProviderClient client = new AmazonCognitoIdentityProviderClient(new AnonymousAWSCredentials(), RegionEndpoint.GetBySystemName(_region));
RespondToAuthChallengeRequest request = new RespondToAuthChallengeRequest
{
Expand Down Expand Up @@ -109,6 +111,7 @@ public async Task<string> Login(string challengeSession, string email, string co
/// <exception cref="Exception"></exception>
public async Task SignUp(string email)
{
email = email.ToLower();
using AmazonCognitoIdentityProviderClient client = new AmazonCognitoIdentityProviderClient(new AnonymousAWSCredentials(), RegionEndpoint.GetBySystemName(_region));
SignUpRequest request = new SignUpRequest
{
Expand Down
2 changes: 1 addition & 1 deletion Assets/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xyz.0xsequence.waas-unity",
"version": "2.15.0",
"version": "2.15.1",
"displayName": "Sequence Embedded Wallet SDK",
"description": "A Unity SDK for the Sequence WaaS API",
"unity": "2021.3",
Expand Down

0 comments on commit ba92bca

Please sign in to comment.