Build an API in Rust with JWT Authentication using actix-web

Let me reach out to him to ask him for help on that front!

This topic was automatically closed 27 days after the last reply. New replies are no longer allowed.

If you are looking for examples on how to integrate Rust with Auth0 using Actix Web, please check out the following code samples:

These code samples cover basic authorization as well as role-based access control.

1 Like

Thanks for sharing this here Dan!

1 Like

I have setup the code from first step but I get this error:

thread 'main' panicked at 'Actix or Tokio runtime not found; halting', C:\Users\myuserid\.cargo\registry\src\github.com-1ecc6299db9ec823\actix-server-2.3.0\src\server.rs:198:27

I tried adding tokio to Cargo.toml and added use actix_rt::Runtime; to top of the main.rs but it hasn’t helped.