File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/auth0_server_python/auth_server Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -603,8 +603,7 @@ async def get_access_token(
603603 # Find matching token set
604604 token_set = None
605605 if state_data_dict and "token_sets" in state_data_dict :
606- token_set = self ._find_matching_token_set (
607- state_data_dict ["token_sets" ], audience or self .DEFAULT_AUDIENCE_STATE_KEY , merged_scope )
606+ token_set = self ._find_matching_token_set (state_data_dict ["token_sets" ], audience , merged_scope )
608607
609608 # If token is valid, return it
610609 if token_set and token_set .get ("expires_at" , 0 ) > time .time ():
@@ -674,6 +673,7 @@ def _find_matching_token_set(
674673 audience : Optional [str ],
675674 scope : Optional [str ]
676675 ) -> Optional [dict [str , Any ]]:
676+ audience = audience or self .DEFAULT_AUDIENCE_STATE_KEY
677677 for token_set in token_sets :
678678 token_set_audience = token_set .get ("audience" )
679679 matches_audience = token_set_audience == audience
You can’t perform that action at this time.
0 commit comments