npm login
import { lucia } from "@/lib/lucia"; | |
import Elysia from "elysia"; | |
import { verifyRequestOrigin } from "lucia"; | |
import type { User, Session } from "lucia"; | |
/** | |
* Use this middleware where you want to check if a user is authenticated. | |
* | |
* As a black box, you'll be able to see if the user is authenticated via |
This guide is a work-in-progress and a culmination of what I know about VSCode and which shortcuts I prefer to use. Hope it helps someone.
This is a short guide I have to become as close as possible to the efficiency of a "Mouse-less Developer" with using purely VSCode. No Vim motions, new shortcuts, just default VSCode (almost).
You're definitely here because:
-
You don't know what credentials are needed to upload an app to Google Playstore and Apple App Store.
-
You don't know how to upload
-
Good guide: https://www.youtube.com/watch?v=5GHT4QtotE4&t=614s
Stuff you know so far:
- Developing the app
- Bundling for Debugging
Note
I already published an npm package: vike-metadata
for react, solid, and vue.
Feel free to check those out instead!
Hi, this is a WIP hook I'm making for Vike to manage meta tags with similar DX as Next.js's Metadata API e.g. export const meta = {}
.
I might make an npm package out of this, but for now, feel free to copy this and save it as a plain .ts
file in your project.
I'm writing this because I keep forgetting Docker.
Make sure you have Docker Desktop.
All you need to know from start to finish:
- Image (a blueprint) -> Container (a running service based on the image) That's it!
- First know how to build images.
- Then know how to run containers from images.
Notes on oAuth because I keep forgetting how to do it.
- Go to https://console.cloud.google.com/
- Make a new Project
- Go to "Credentials" https://console.cloud.google.com/apis/credentials?project=
- If you haven't yet, you will Configure Consent Screen first: https://console.cloud.google.com/apis/credentials/consent?project=
- Under OAuth 2.0 Client IDs. [+ Create Credentials] - OAuth Client ID.
- http://localhost:3000 is the only allowed domain if you're doing local dev. Local reverse proxies to stuff like 192.168 (which if you're doing mobile webdev, might be hard).
- Make sure Authorized redirect URIs is the '/callback' handler endpoint of your API.
I want to support this browser, but there are just so many things making me want to move away. I've used it as my daily driver for over a month now. This doc is just a note of the features/fixes "I want" to monitor.
The only literal thing making me stay: Memory Usage and Battery Life. (Which tbh, I don't even care for since I have a Mac with a hefty amount of memory already).
- Infinite/redirects when on Persisted Tab. (Issue: https://orionfeedback.org/d/10692-infinite-reloadredirect-on-instagram-or-google-oauth-redirects-when-i-have-vertical-tabs-2-windows, it was set to Done but not fixed).
- Cmd + N while on a Pinned Tab, refreshes it. (Issue: https://orionfeedback.org/d/10688-pressing-n-while-on-a-pinned-tab-reloads-the-tab)
- Sometimes Reddit posts don't load. (e.g. visiting https://www.reddit.com/r/TerraMaster/), will remove all posts. Then if I open in a New Window (Cmd + N), not even Incognito, and paste the link, it loads it. Then I go back to the original window, and refresh, and it works