public function createToken($type, $expire = 60, $length = 48, $customProperties = null)
    {
        return $this->token()->create([
            'token'             => $this->generateTokenString($length),
            'expiration_date'   => Carbon::now()->addMinutes($expire),
            'type'              => $type,
            'custom_properties' => $customProperties,
        ]);
    }