Closed phantom-j closed 6 years ago
I think you can access it by u.id_token, u.access_token, u.refresh_token
Just incase you need more help, here is some code that will print the details you require on new lines in the shell :)
u = Cognito('your-user-pool-id','your-client-id',
username='bob')
u.authenticate(password='bobs-password')
return_value = f'ID token: {u.id_token} \nAccess Token: {u.access_token} \nRefresh Token: {u.refresh_token}'
print(return_value)
Hi below snippet will work for you
u = Cognito('your-user-pool-id','your-client-id',
username='bob')
u.authenticate(password='bobs-password')
print u.__dict__
Thanks guys, these methods are working.
Hi, i am using this method to authenticate
u = Cognito('your-user-pool-id','your-client-id', username='bob') u.authenticate(password='bobs-password')
It's not giving any error,but after that it's not printing anything,not even return value of u.authenticate() How to print idtoken,access token and refresh token?