Skip to main content

Activity for sandros94.com

Active on:

Loading activity...

Back to the newest activity

PostedBluesky network

The first @nuxt.com v5 nightly build is more polished than you might think... The only changes made to make it work on @bunny.net are: - patch `@nuxt/icon` - fix Nitro imports - use `consola/browser` for Edge Scripting compatibility powered by @nitro.build v3 and @vite.dev v8

nuxt-v5-tq8ok.bunny.run
PostedBluesky network

spent some time yesterday refactoring a bit unjwt, some of the changes were planned since months ago (mostly perf) others just turned out to be nice additions I've also added skills for your agents, just install it and let them help you use the power of JWT ```sh npx skills add sandros94/unjwt ```

Release v0.5.39 · sandros94/unjwt
github.com
Posted: @patak.dev here's a new conversation topic: WDYT about @katywings.bsky.social point? I can still remember my initial though on using git …Bluesky network
PostedBluesky network

Giving some love to what is probably my all-time favorite package, which powers everything under the hood 🙌 npmx.dev/h3

  • h3 on npmx.dev with exactly one like
Posted: Nitro v3 is so dead simple to integrate with whatever the f(st)ack you want. You have no excuse now.Bluesky network
Posted: Italy always amazes me... Arcade rooms and international majors for competitive videogames are practically banned thanks to a few meticulo…Bluesky network
Posted: Lately I'm going a bit further compared to programming. In particular since I started struggling in building a project I have had in mind f…Bluesky network
Posted: wtf javascript?!? console.log("2" + "2" - "2");Bluesky network
Posted: We are so close for 1st position! Could we get a bit of help? 🙏Bluesky network
PostedBluesky network

Published yet another update for `unjwt` Added an h3 (v1) adapter with in-context caching for both JWS and JWT tokens. With minimal runtime configuration you'll be also able to wrap them in your Nuxt and Nitro projects

  • Minimal code example for handling JWE and JWS sessions in h3, Nitro and Nuxt

```ts
import { useJWESession, useJWSSession, generateJWK } from "unjwt/adapters/h3";

const keys = await generateJWK("RS256");

export default defineEventHandler(async (event) => {
  const privateSession = await useJWESession(event, {
    name: "app-session",
    secret: "my-secret", // or JWK (symmetric or asymmetric keypair)
  });

  await privateSession.update((data) => ({
    visits: (data.visits ?? 0) + 1,
  }));

  const publicSession = await useJWSSession(event, {
    name: "app-session-public",
    key: keys, // you can directly pass symmetric or asymmetric keypairs
    maxAge: 60 * 60, // automatic JWT and cookie expiration
  });

  return {
    encryptedSession: privateSession.data,
    signedSession: publicSession.data,
  };
});
```
Posted: back in march I got introduced to Json Web Tokens (JWT), ended up loving the spec but not so much the API provided by libraries. So I start…Bluesky network
Posted: have you ever found yourself finishing a rewrite of an entire project, only to realize that if you would rewrite in a completely different …Bluesky network
Posted: I've said this so many times: once you start piping around with valibot, there is no going back.Bluesky network
Posted: Just a small reminder, since Nuxt UI v4 is closer and closer to a stable releaseBluesky network
Posted: I still think those who are able to use neovim efficiently, either have perfect finger placement on the keyboard or already have more than …Bluesky network