Fork me on GitHub
#aws
<
2019-06-28
>
dangercoder07:06:59

How do you guys use aws cognito? I built my own UI and used the adminApi to signup, verify signup and login through my own servers

dogenpunk12:06:36

@jarvinenemil I’m working on an app that uses Cognito in much the same way. I hope we’ll eventually store all “personally identifying information” there as well.

dangercoder18:06:45

@dogenpunk do you also had the issue that the token is not valid if you use it directly after authenticating an user? from my logs: Time is: 2019-06-28T20:11:42 The Token can't be used before Fri Jun 28 20:11:48 CEST 2019.

dangercoder18:06:28

I don't want to log in my user, and then wait for a few seconds until I can begin to hit my controllers with their tokens 😣

valtteri19:06:15

Check your server clock.

valtteri19:06:22

... assuming you’re validating the token on your server.

dangercoder19:06:28

ah yes... I am doing the validation of the token locally atm so that might be the reason why 🙂 thanks @U6N4HSMFW!

dangercoder19:06:56

It's off by a few seconds. But i'll be on elastic beanstalk in prod so i think it will work properly