Authentication Timeout
Play
15:12 CC

Authentication Timeout

#448 Mar 24, 2024 pro
In this episode, we'll explore adding the ability to extend an authenticated session wish is about to expire. We'll be using a Stimulus controller for the bulk of the logic and the provided functionality that Devise gives us out of the box.

Masked Fields
Play
8:35 CC

Masked Fields

#403 May 28, 2023 pro
Learn to create a reusable Stimulus controller to be able to toggle fields so that we can hide sensitive information from prying eyes, screenshots or when sharing our screen.

Session Hijacking
Play
9:27 CC

Session Hijacking

#400 May 7, 2023 free
In this episode, we explore session hijacking and an approach that we can take to limit the risk. There are some user experience and functionality caveats to this approach so they must be taken into consideration as well.

generates_token_for
Play
7:55 CC

generates_token_for

#380 Dec 18, 2022 pro
In Rails 7.1, we're going to get a new feature that will allow us to generate tokens for attributes. With generates_token_for, a token can embed data from a record. When using the token to fetch the record, the data from the token and the data from the record will be compared.

Cloudflare Turnstile
Play
14:30 CC

Cloudflare Turnstile

#379 Dec 11, 2022 pro
Cloudflare Turnstile delivers frustration-free, CAPTCHA-free web experiences to website visitors. In this episode, we'll look at implementing this a few different ways and resolving some issues with Turbo.