You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Split the method into get_user and create_for_cognito.
Spliting the method into two allows more efficient calling of the method, especially when using access token.
The get_user method will first check whether the user exists. If exists, it will directly skip the get requests from UserInfo endpoint, and also skip the attempt for user creation, and directly return the user object.
The UserInfo endpoint will be only called during the initial registeration of the client that does not exist in User database.
0 commit comments