solidusio-contrib / solidus_social

Building block for social authentication in your Solidus store.
BSD 3-Clause "New" or "Revised" License
27 stars 52 forks source link

Utilize Devise Location helpers #109

Open cpfergus1 opened 2 years ago

cpfergus1 commented 2 years ago

Description Removes #redirect_back_or_default in favor of solidus_auth_devise helper methods

Motivation and Context The method #redirect_back_or_default and the class user_last_url_storer will be deprecated in Solidus https://github.com/solidusio/solidus/pull/4533 which would break the current build without these changes. SolidusAuthDevise has similar a helper method to #redirect_back_or_default, #stored_spree_user_location_or which was introduced in https://github.com/solidusio/solidus_auth_devise/pull/228 and will be utilized instead.

How Has This Been Tested? The current test suite covers the changes made in the PR