SakaDream / actix-web-rest-api-with-jwt

A simple CRUD backend app using Actix-web, Diesel and JWT

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to make middleware support async fucntion call?

measproem opened this issue · comments

Your project very good skeleton of Actix Web rest API especially your Middleware jwt concept , I have changed to support other database library beside diesel , every thing work fine but I have one issue because of new database library need to working on async example token_utils::verify_token(&token_data, pool).await in file name auth_middleware.rs I hard to call it or how make it works in middleware.
I hope get your help
Thank you