SShortSingh.
Back to feed

Munchable Uses URL Fragments to Pass Login Sessions Between Website and App

0
·2 views

Munchable runs a marketing site and a separate Expo app on different origins, so a user who signs up on the website would otherwise have to log in again in the app. The team fixed this with a short handoff function that places the session tokens in the URL fragment after the hash. Because fragments are never sent to servers, the refresh token stays out of access logs, error reports, and referrer headers. If the session has expired, the function returns false and sends the user back to sign in on the current origin. The receiving app reads the fragment first and falls back to the query string to handle OAuth returns.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

ffmpeg से वीडियो में सीन कट ढूँढकर उन्हीं बिंदुओं पर फ़ाइलें कैसे बाँटें

एडिट किए वीडियो में कट पहचानने के लिए ffmpeg का scene फ़िल्टर आमतौर पर पर्याप्त माना जाता है, पर यह लेख दो अनसुलझे सवाल उठाता है: सही threshold कैसे चुनें और कटों पर ही फ़ाइलें कैसे बाँटें। लेखक ने ffmpeg के अंदरूनी scoring तरीके को Python में दोबारा बनाकर उसे एक NASA launch वीडियो पर मापा है। विश्लेषण में दिखाया गया है कि showinfo के नतीजे stderr में आते हैं, न कि stdout में। हर फ़्रेम का score उसके और पिछले फ़्रेम के बीच औसत अंतर के बदलाव के आधार पर तय होता है, जिससे कैमरा शेक और असली कट में फ़र्क होता है। Y plane को yuv420p से लेना सटीक नतीजों के लिए ज़रूरी बताया गया है।

0
ProgrammingDEV Community ·

A Beginner's Guide to Reading Google Analytics Without Getting Overwhelmed

A digital marketer from Kerala offers a simplified introduction to Google Analytics for small business owners who find the tool intimidating. The free platform works like a camera inside a shop, revealing visitor counts, traffic origins, page views, and actions taken on a website. The article explains key terms such as users, sessions, traffic sources, engagement, and conversions in plain language. It recommends focusing on five core questions rather than every report, along with checking device type and visitor locations. A brief monthly review routine is suggested to track progress and choose one improvement for the following month.

0
ProgrammingDEV Community ·

LinkDigest reads top Xiaohongshu comments from share links without an account

Xiaohongshu offers no public comments endpoint, and its web page only expands comments after login. The share link copied from the app opens a public page that embeds up to five top comments, each with up to three replies. The LinkDigest service reads these in the same request as the note, requiring no Xiaohongshu account or cookies. The approach is limited: it returns only top comments and reply excerpts, never the full thread or commenter identities. Douyin videos return no comments because their embed player serves none.

0
ProgrammingDEV Community ·

Verifying Warranty Cards On-Chain: A Token-2022 Soulbound Receipt Checker

A repair-shop scenario illustrates the need to confirm whether a customer's warranty card is genuine without relying on screenshots or the holder's word. The article presents a verifier that checks a soulbound Token-2022 card using only public chain data, applying eight checks covering mint ownership, one-of-one supply, non-transferability, metadata location, issuing authority, warranty validity, order matching, and holder ownership. The verifier is a pure function over raw account data, making it reusable in servers, wallets, or agents. It returns every individual check result rather than a simple pass or fail, so staff can see exactly which requirement failed. The author notes the code is an unaudited, devnet-only educational example and that actual warranty decisions still depend on shop policy and consumer law.