public function refresh($forceForever = false, $resetClaims = false)
    {
        if ($cache = $this->getCachedToken()) {
            return $cache;
        }

        // refresh token
        $token = $this->jwt->parser()->parseToken();
        $key = md5($token);
        $refreshToken = JWTAuth::refresh($token, $forceForever, $resetClaims);

        // cache newly refreshed token
        $this->setCachedToken($key, $refreshToken);

        return $this->cachedToken;
    }
public function refresh($forceForever = false, $resetClaims = false)
    {
        if ($cache = $this->getCachedToken()) {
            return $cache;
        }

        // refresh token
        $token = $this->jwt->parser()->parseToken();
        $key = md5($token);
        $refreshToken = JWTAuth::refresh($token, $forceForever, $resetClaims);

        // cache newly refreshed token
        $this->setCachedToken($key, $refreshToken);

        return $this->cachedToken;
    }
public function refresh ( $ forceForever = false , $ resetClaims = false ) { if ( $ cache = $ this -> getCachedToken ( ) ) { return $ cache ; } // refresh token $ token = $ this -> jwt -> parser ( ) -> parseToken ( ) ; $ key = md5 ( $ token ) ; $ refreshToken = JWTAuth :: refresh ( $ token , $ forceForever , $ resetClaims ) ; // cache newly refreshed token $ this -> setCachedToken ( $ key , $ refreshToken ) ; return $ this -> cachedToken ; }
Refresh current expired token.

@return string
Refresh current expired token .