/stytch-ruby-on-rails-example

Using Stytch magic links in a Rails app

Primary LanguageRubyMIT LicenseMIT

stytch-rails-magic-links

This repo shows one way to integrate Stytch magic link logins into a Rails app.

Add Magic Link URL

Visit https://stytch.com/dashboard/redirect-urls to add http://localhost:3000/authenticate as a valid sign-up and login URL.

Development Setup

  1. Install Ruby 2.7.3.
  2. Clone this repo.
  3. Run bin/setup to install everything else and set up your Stytch API keys.
  4. Run bin/rails server to start the app.
  5. Navigate to http://localhost:3000 to access the app.

License

The example application is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Stytch project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.