### ----------------------------------------------------
### -- Cro::HTTP
### -- Licenses: Artistic-2.0
### -- Authors: Jonathan Worthington <jnthn@jnthn.net>
### -- File: lib/Cro/HTTP/Auth/WebToken/FromCookie.rakumod
### ----------------------------------------------------
use Cro::HTTP::Auth::WebToken;

role Cro::HTTP::Auth::WebToken::FromCookie[Str $cookie-name] does Cro::HTTP::Auth::WebToken {
    method get-token($request) {
        $request.cookie-value($cookie-name);
    }
}


