Thanks for this article, it was a life saving ! However I'm facing a final difficulty where my session is instantly expired when I'm redirected from /users/auth/apple/callback. Could the secure cookie attribute test to none for apple callbacks be responsible ?
fsanggang
Where is the controller and action defined for
<%= button_to "/auth/apple" %>? I am getting a ActionController::InvalidAuthenticityToken error on POST but can't figure out where I might addskip_before_action :verify_authenticity_token.The error does not appear to be happing on the callback, but on the POST to /auth/apple itself.