File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
crates/authentication/src Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -737,6 +737,9 @@ where
737737 ) )
738738 } ) ?;
739739
740+ // TODO(ari): This can be cleaned up into one if statement, but I was lazy for
741+ // the moment. Once the migration is done, there will be only one issuer to
742+ // check
740743 if issuer. contains ( "api.workos.com" ) {
741744 anyhow:: ensure!(
742745 * issuer
@@ -761,6 +764,18 @@ where
761764 format!( "Issuer {} does not match WorkOS client ID" , issuer)
762765 )
763766 )
767+ } else if issuer. contains ( "apiauth.convex.dev" ) {
768+ anyhow:: ensure!(
769+ * issuer
770+ == format!(
771+ "https://apiauth.convex.dev/user_management/{}" ,
772+ workos_client_id
773+ ) ,
774+ ErrorMetadata :: unauthenticated(
775+ "AccessTokenInvalid" ,
776+ format!( "Issuer {} does not match WorkOS client ID" , issuer)
777+ )
778+ )
764779 } else {
765780 anyhow:: ensure!(
766781 workos_auth_urls. iter( ) . any( |url| {
You can’t perform that action at this time.
0 commit comments