add expiry to jwt extended token
@jwt_required
def create_dev_token():
username = get_jwt_identity()
expires = datetime.timedelta(days=365)
token = create_access_token(username, expires_delta=expires)
return jsonify({'token': token}), 201