Using rest in post-auth