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
Hey,
I just can't get cognito to work with this library...
I am using the second example
def secure_access(current_user: AccessUser = Depends(auth.claim(AccessUser))):
# access token is valid and getting user info from access token
return f"Hello", {current_user.sub}
with the example
class AccessUser(BaseModel):
sub: str
But as soon as I add custom attributes that are set in my cognito pool, like "email" or "family_name", it throws the error
"Validation Error for Claims"
How can I add custom attributes to grab them like current_user.family_name ?
The text was updated successfully, but these errors were encountered:
Hey,
I just can't get cognito to work with this library...
I am using the second example
with the example
But as soon as I add custom attributes that are set in my cognito pool, like "email" or "family_name", it throws the error
"Validation Error for Claims"
How can I add custom attributes to grab them like current_user.family_name ?
The text was updated successfully, but these errors were encountered: