Skip to content

Lomect/actix-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

actix-auth

actix auth macro

dependencies

actix-web
actix-identity

example

actix auth must have a params: _id: Identity actix auth have a string by let Some(ident) = identity.identity();.

use actix_auth::login_required;

#[login_required]
pub async fn index(_id: Identity) -> HttpResponse {
    HttpResponse::Ok().json(ident)
}

About

actix auth macro

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages