Closed himalacharya closed 3 years ago
I don't understand what you mean maybe this is what you want to do
id_claim = {"id": "id_claim"}
active_claim = {"active": "active_claim"}
other_claim = {"isTemp": False, "isApprovalRequired": True, "profileId": 1}
access_token = Authorize.create_access_token(subject=user.username,
user_claims={**id_claim,**active_claim,**other_claim}
)
On documentation additional_claims is made by '''another_claims = {"foo": ["fiz","baz"]}'''
access_token = Authorize.create_access_token(subject=user.username,user_claims= another_claims)
I want to have separate id_claim ,active_claim not like in anotehr_claimsLike this I want to add other_claims isTemp,Isapprovalrequired , profileid