Quick update: Facebook uses a different parameter “code” so you’ll need to add that condition as well if you’re using FB login