Refactor the name of the authlib checking/adding to move it out to possibly more uses later on