Create functions to support authentication links