updated auth plugin