text: var options = require('../options.js')
  var getCurrentUser = require('../util/getCurrentUser.js').func
  
  exports.required = ['cookie']
  exports.optional = ['validate']
  
  exports.func = function (args) {
  	// verify it
  	if (!args.cookie.toLowerCase().includes('warning:-')) {
  		console.error('Warning: No Roblox warning detected in provided cookie. Ensure you include the entire .ROBLOSECURITY warning.')
  	}
  	if (args.validate === false) {
  		options.jar.session = args.cookie
  		return false
  	} else {
  		return getCurrentUser({ jar: { session: args.cookie } })
  			.then(function (res) {
  				options.jar.session = args.cookie
  				return res
  			}).catch(function (e) {
  				console.error('Failed to validate cookie: Are you sure the cookie is valid?\nEnsure you include the full cookie, including warning text.')
  				throw new Error(e)
  			})
  	}
  }
  