#macro #actix #required #cookies

macro actix-auth

actix auth is a cookie auth macro

1 unstable release

0.1.0 Jan 9, 2020

#23 in #cookie

MIT/Apache

4KB

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)
}

Dependencies

~35MB
~798K SLoC