Skip to main content

Join GoRails to continue learning

Subscribe to GoRails to get access to this episode and all other pro episodes, and access to our private Slack community of Ruby and Rails devs.

Subscribe to watch

Login to your account

How To Build APIs with Rails:

JSON Web Tokens with Devise & Warden

40

Episode 167 · January 10, 2017

Add a Warden strategy to Devise to support JWT authentication with your Rails app

APIs Authentication


Resources

You can login the user with warden and not set cookies by adding store: false to what we used in the episode to login the user:

sign_in(user, store: false)

https://github.com/plataformatec/devise/blob/88724e10adaf9ffd1d8dbfbaadda2b9d40de756a/lib/devise/controllers/sign_in_out.rb#L23

Transcripts

Subscribe or login to view the transcript for this episode.

Loading...

Subscribe to the newsletter

Join 27,623+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.