Bart ⚡
Bart ⚡
Explore posts from servers
BABetter Auth
Created by Bart ⚡ on 2/22/2025 in #bug-reports
Expo: TypeError: Cannot read property 'subtle' of undefined
I updated the Expo client library and want to implement the magic link plugin, but when I try to use this plugin I'm receiving:
TypeError: Cannot read property 'subtle' of undefined
TypeError: Cannot read property 'subtle' of undefined
How could I fix it?
2 replies
BABetter Auth
Created by Bart ⚡ on 1/10/2025 in #help
Magic link on mobile app
I easily implemented magic link authentication on the web app, and I'm trying to do the same in the mobile app (with Expo integration), but the callbackURL is not working and it never redirects me to my app, what should I do to handle this?
4 replies
BABetter Auth
Created by Bart ⚡ on 1/7/2025 in #help
The returned data type from session on server is incorrect
When reading session on the api side, the dates are returned as date strings, that's why some checks (e.g. session freshness) are not working 😕 (I'm using Drizzle adapter)
3 replies
BABetter Auth
Created by Bart ⚡ on 1/5/2025 in #help
Expo - can't login with social provider
I'm trying to use Expo plugin to login with Github provider, when I click the button the redirect is working correctly but I'm getting session back 😕 Here are the logs from useSession hook:
(NOBRIDGE) LOG {"data": null, "error": null, "isPending": true, "isRefetching": false}
(NOBRIDGE) LOG {"data": null, "error": null, "isPending": true, "isRefetching": true}
(NOBRIDGE) LOG {"data": null, "error": null, "isPending": false, "isRefetching": false}
(NOBRIDGE) LOG {"data": null, "error": null, "isPending": true, "isRefetching": true}
(NOBRIDGE) LOG {"data": null, "error": null, "isPending": false, "isRefetching": false}
(NOBRIDGE) LOG {"data": null, "error": null, "isPending": true, "isRefetching": true}
(NOBRIDGE) LOG {"data": {"redirect": true, "url": "https://github.com/login/oauth/authorize?response_type=code&client_id=123&state=4hbPIPGNOYvNEqIj4W80dMpmXRq1&scope=user%3Aemail&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fapi%2Fauth%2Fcallback%2Fgithub"}, "error": null}
(NOBRIDGE) LOG {"data": null, "error": null, "isPending": false, "isRefetching": false}
(NOBRIDGE) LOG {"data": null, "error": null, "isPending": true, "isRefetching": false}
(NOBRIDGE) LOG {"data": null, "error": null, "isPending": true, "isRefetching": true}
(NOBRIDGE) LOG {"data": null, "error": null, "isPending": false, "isRefetching": false}
(NOBRIDGE) LOG {"data": null, "error": null, "isPending": true, "isRefetching": true}
(NOBRIDGE) LOG {"data": null, "error": null, "isPending": false, "isRefetching": false}
(NOBRIDGE) LOG {"data": null, "error": null, "isPending": true, "isRefetching": true}
(NOBRIDGE) LOG {"data": {"redirect": true, "url": "https://github.com/login/oauth/authorize?response_type=code&client_id=123&state=4hbPIPGNOYvNEqIj4W80dMpmXRq1&scope=user%3Aemail&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fapi%2Fauth%2Fcallback%2Fgithub"}, "error": null}
(NOBRIDGE) LOG {"data": null, "error": null, "isPending": false, "isRefetching": false}
The backend is not throwing any error, but the redirect inside the app is not working. How can I fix it? (the email method is working fine) I'm on 1.1.10
11 replies
BABetter Auth
Created by Bart ⚡ on 1/3/2025 in #help
Expo types mismatch
Hi, I want to integrate better-auth with my Expo app, I created the client exactly like in the docs, but I'm receiving still the type error:
import { createAuthClient } from "better-auth/react";
import { expoClient } from "@better-auth/expo/client";

export const authClient = createAuthClient({
baseURL: getBaseUrl(),
plugins: [
expoClient({
storage: SecureStore,
}),
],
});
import { createAuthClient } from "better-auth/react";
import { expoClient } from "@better-auth/expo/client";

export const authClient = createAuthClient({
baseURL: getBaseUrl(),
plugins: [
expoClient({
storage: SecureStore,
}),
],
});
And this is the error that goes from plugin definition:
Type 'ZodType<any, ZodTypeDef, any>' is missing the following properties from type 'ZodType<any, ZodTypeDef, any>': "~standard", "~validate"
Type 'ZodType<any, ZodTypeDef, any>' is missing the following properties from type 'ZodType<any, ZodTypeDef, any>': "~standard", "~validate"
22 replies
PD🧩 Plasmo Developers
Created by Bart ⚡ on 11/4/2024 in #👟framework
How can I change tab title?
I'm still getting undefined as document.title in rendered html 😕
2 replies
PD🧩 Plasmo Developers
Created by Bart ⚡ on 10/24/2024 in #👾extension
Vite?
Is there any chance to use Plasmo with Vite?
2 replies
TtRPC
Created by Bart ⚡ on 10/14/2024 in #❓-help
Streaming in React Native?
Did anyone manage to run streaming on React Native?
10 replies
TtRPC
Created by Bart ⚡ on 10/10/2024 in #❓-help
What types of data I could return from tRPC procedure?
As per title, could it be only JSON objects?
3 replies
TtRPC
Created by Bart ⚡ on 10/10/2024 in #❓-help
AI support
Hey, can I use TRPC with some AI stuff e.g. Vercel AI SDK? I want to stream returned data to the client. Thanks in advance for any tips or tutorials!
1 replies
PD🧩 Plasmo Developers
Created by Bart ⚡ on 9/18/2024 in #👟framework
Possibility to customize path aliases?
I want to have all my extension related pages in one directory (e.g. /app). Is it possible? I tried the solution below, but it's not working: tsconfig.json
"paths": {
"~popup": ["./src/app/popup/"],
"~*": ["./src/*"]
},
"paths": {
"~popup": ["./src/app/popup/"],
"~*": ["./src/*"]
},
3 replies
PD🧩 Plasmo Developers
Created by Bart ⚡ on 8/17/2024 in #🔰newbie
How to submit through Github Actions?
No description
2 replies
TTCTheo's Typesafe Cult
Created by Bart ⚡ on 4/23/2023 in #questions
tRPC throwing UNAUTHORIZED after logging in
After I'm logging in using my custom sign-in page (next-auth), I get a redirect to /dashboard. But there, all my tRPC queries are failing and throwing UNAUTHORIZED error. After I simply reload the page everything seems to be working, why is it so? Here's the code: https://github.com/Bartek532/rssmarkable
2 replies
TTCTheo's Typesafe Cult
Created by Bart ⚡ on 4/7/2023 in #questions
T3 Stack + custom Next.js server not working
Hi, I'm using t3 stack and trying to leverage Next.js custom server. But, unfortunately when I'm trying to run it using ts-node I'm constantly getting an error connected to module resolution (I guess it's because my next.config.mjs has .mjs extension):
[1] Error [ERR_REQUIRE_ESM]: require() of ES Module next.config.mjs not supported.
[1] Instead change the require of next.config.mjs to a dynamic import() which is available in all CommonJS modules.
[1] Error [ERR_REQUIRE_ESM]: require() of ES Module next.config.mjs not supported.
[1] Instead change the require of next.config.mjs to a dynamic import() which is available in all CommonJS modules.
What should I do to fix this? Here's the full code: https://github.com/Bartek532/rssmarkable/pull/40 Thanks in advance for all suggestions! 🙂
22 replies
TTCTheo's Typesafe Cult
Created by Bart ⚡ on 3/26/2023 in #questions
Next.js + tRPC + Redis - pub/sub
Hi, I have an app made in Next.js, and I want to get some real-time log feature for it. I thought about using Redis Pub/Sub to do it, and use tRPC Subscriptions also. Ideally I want to publish a message from Next.js API Route and then handle it in tRPC subscription. But for now, I'm trying to make the simplest solution and it doesn't work. I follow docs and made needed things to use it (one diff is I replace event emitter with redis) and when I published my message it doesn't seem to be handled in subscription. Here's the code, I will be glad, if you can take a look and tell me what I'm doing wrong. Thanks in advance! 🙂 https://github.com/Bartek532/rssmarkable/pull/40
4 replies