GenTux\Jwt\JwtToken::token PHP Method

token() public method

Get the current JWT token
public token ( ) : string
return string
    public function token()
    {
        if (!$this->token) {
            throw new NoTokenException('No token has been set.');
        }
        return $this->token;
    }