File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
crates/authentication/src Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -717,14 +717,13 @@ where
717717 "Access Token could not be decoded to determine provider type" ,
718718 ) ) ?;
719719
720- let audience = payload. registered . audience ;
721- let is_auth0 = match audience {
720+ let is_auth0 = match payload. registered . audience {
722721 None => false ,
723- Some ( aud ) => match aud {
724- biscuit :: SingleOrMultiple :: Multiple ( auds ) => auds
725- . iter ( )
726- . any ( |audience| audience . contains ( "console.convex.dev" ) ) ,
727- biscuit :: SingleOrMultiple :: Single ( aud ) => aud . contains ( "console.convex.dev" ) ,
722+ Some ( biscuit :: SingleOrMultiple :: Multiple ( auds ) ) => auds . iter ( ) . any ( |audience| {
723+ audience == CONVEX_CONSOLE_API_AUDIENCE || audience == ALTERNATE_CONVEX_API_AUDIENCE
724+ } ) ,
725+ Some ( biscuit :: SingleOrMultiple :: Single ( audience ) ) => {
726+ audience == CONVEX_CONSOLE_API_AUDIENCE || audience == ALTERNATE_CONVEX_API_AUDIENCE
728727 } ,
729728 } ;
730729
You can’t perform that action at this time.
0 commit comments