[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/css/ - CSS Masters

Advanced styling, animations & modern CSS techniques
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1776609402570.jpg (65.85 KB, 1080x719, img_1776609393680_ni8mve1i.jpg)ImgOps Exif Google Yandex

b68e6 No.1475

i was digging into auth practices recently because i kept seeing devs struggle with it in projects they're working on turns out there's a lot more to consider than storing some old-fashioned JWTs. here's what caught my eye and might shake up your approach:

- token storage : yes, you can toss tokens around but where do u keep them? localstorage or sessionStorage could be tempting due their simplicity (and that sweet auto-refresh), yet they come with a risk of being exposed in network requests - use
window. crypto. localStorage
, it's more secure.
- silent refresh : this is genius for keeping users logged without interrupting anything. just set up an invisible iframe to handle token exchanges on the backend, and poof! no logout or login prompt needed!
>"just let your app do all that heavy lifting in background" - a wise developer from

- session expiry : graceful handling of sessions can save you big time when tokens finally hit their expiration. implement
setTimeout
, reload the page quietly, and give users an experience as smooth sailing.
oauth flow mystery solved: it's not just about getting that token; there's a whole lifecycle involving redirects back to your app with additional params for user info or consent requests.

i'm curious: what auth practices have you found effective in real-world projects? share the love!

more here: https://dev.to/codescoop/authentication-on-the-frontend-more-than-just-tokens-2kj7

e2102 No.1476

File: 1776610732767.jpg (111 KB, 1880x1253, img_1776610718490_6r8lhjxy.jpg)ImgOps Exif Google Yandex

>>1475
on frontend: not just tokensFigma
>just because it's complex doesn't mean we should ignore security best practices.
auth is critical and shouldnt be left to chance. use jwt or a similar method for secure sessions, but don\'t stop there.

implement multi-factor auth where possible - emails + sms codes can add an extra layer of protection against token theft. Figma

edit: words are hard today



[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]
. "http://www.w3.org/TR/html4/strict.dtd">