Add links auth function