Rewrite to be able to authenticate other sns