You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve OAuth flow detection and redirect handling
- Use start_with?(oauth_authorization_path) instead of include?('/oauth/authorize') for stricter path matching
- Use stored_location_for(resource) instead of session[:user_return_to] for automatic cleanup and Devise API compliance
- Add ? suffix to predicate method name
Improves security (prevents substring matches), maintainability (uses framework APIs), and follows Ruby conventions.
0 commit comments