# Posts

> Plain-English explainers on webhooks, auth, Supabase, push notifications and Expo releases.

Web page: https://davidewins.com/posts

- [How do webhooks work?](https://davidewins.com/posts/how-webhooks-work): A webhook is a request a service sends to your server when something happens. How signatures, retries, duplicates and idempotent handlers fit together.
- [Supabase RPC vs Edge Function: where should this code run?](https://davidewins.com/posts/supabase-rpc-vs-edge-function): Client, Postgres function, trigger, Edge Function, API route or Node server. What each one can see in a Supabase app, and how that decides where logic goes.
- [How does Sign in with Google work?](https://davidewins.com/posts/sign-in-with-google): What happens between tapping Sign in with Google and landing in the app: OAuth, OpenID Connect, callback URLs, PKCE and the native ID token flow.
- [JWT and refresh tokens explained](https://davidewins.com/posts/jwt-and-refresh-tokens-explained): What is inside a JWT, why it is signed and not encrypted, why access tokens expire after an hour, how refresh tokens work, and what signing out really does.
- [Supabase Row Level Security explained: why a public key can still be safe](https://davidewins.com/posts/supabase-row-level-security-explained): The publishable key in your app is public. Row Level Security is what decides which rows that key can reach. Here is how it works.
- [Idempotency keys explained: why customers get charged twice](https://davidewins.com/posts/idempotency-keys-explained): A payment can succeed while its response is lost, so the client retries. Idempotency keys, unique constraints and webhook handlers stop the second charge.
- [How do push notifications work? From your server to a phone](https://davidewins.com/posts/how-push-notifications-work): Your server never contacts the phone directly. Here is the path a push notification takes, through Expo, APNs and FCM, and why tokens go stale.
- [EAS Update vs a new build: what's actually inside your app](https://davidewins.com/posts/eas-update-vs-new-build): An Expo app is a native binary plus a JavaScript bundle. Updates can only swap the bundle, which is why native changes need a new store build.
- [App version vs build number: how to version releases](https://davidewins.com/posts/app-version-vs-build-number): The version people see, the build number the stores need, and the runtime version that controls over-the-air updates, with the Expo config for each.
