sanser
sanser
Explore posts from servers
BABetter Auth
Created by sanser on 3/7/2025 in #help
401 doing listActiveSubscriptions on server side
but im so wrong- my bad it was late at night and my brain was frazzed... thanks again @rtmorgan
22 replies
BABetter Auth
Created by sanser on 3/7/2025 in #help
401 doing listActiveSubscriptions on server side
No description
22 replies
BABetter Auth
Created by sanser on 3/7/2025 in #help
401 doing listActiveSubscriptions on server side
thank you- i checked the typing for the params of the function and i swear it didnt expect the headers lol
22 replies
BABetter Auth
Created by sanser on 3/7/2025 in #help
401 doing listActiveSubscriptions on server side
ha- this works :FacePalm:
22 replies
BABetter Auth
Created by sanser on 3/7/2025 in #help
401 doing listActiveSubscriptions on server side
subscription is the route with the +page.server.ts where im attempting to get this information
22 replies
BABetter Auth
Created by sanser on 3/7/2025 in #help
401 doing listActiveSubscriptions on server side
No description
22 replies
BABetter Auth
Created by sanser on 3/7/2025 in #help
401 doing listActiveSubscriptions on server side
its pretty big :D
22 replies
BABetter Auth
Created by sanser on 3/7/2025 in #help
401 doing listActiveSubscriptions on server side
hooks.server.ts
import { auth } from '$lib/server/auth';
import { svelteKitHandler } from 'better-auth/svelte-kit';
import { building } from '$app/environment';
import { emailWorker } from '$lib/server/background/queue.email';

if (!building) {
emailWorker();
}

export async function handle({ event, resolve }) {
return svelteKitHandler({ event, resolve, auth });
}
import { auth } from '$lib/server/auth';
import { svelteKitHandler } from 'better-auth/svelte-kit';
import { building } from '$app/environment';
import { emailWorker } from '$lib/server/background/queue.email';

if (!building) {
emailWorker();
}

export async function handle({ event, resolve }) {
return svelteKitHandler({ event, resolve, auth });
}
22 replies
BABetter Auth
Created by sanser on 3/7/2025 in #help
401 doing listActiveSubscriptions on server side
(im ofc using the magic link plugin?)
22 replies
BABetter Auth
Created by sanser on 3/7/2025 in #help
401 doing listActiveSubscriptions on server side
so this login is from a magic link login, i am just accessing this route by a direct navigation currently
22 replies
BABetter Auth
Created by sanser on 3/7/2025 in #help
401 doing listActiveSubscriptions on server side
does this seem like a bug?
22 replies
BABetter Auth
Created by sanser on 3/7/2025 in #help
401 doing listActiveSubscriptions on server side
il give it a go though
22 replies
BABetter Auth
Created by sanser on 3/7/2025 in #help
401 doing listActiveSubscriptions on server side
i did recently upgrade but i recently changed laptops and db has been wiped + ofc new browser cookies
22 replies
BABetter Auth
Created by sanser on 3/7/2025 in #help
401 doing listActiveSubscriptions on server side
hey @rtmorgan yes it does contain a better auth session cookie BUT i have used the option to rename it: using ->
advanced: {
cookiePrefix: 'dailydebrief'
},
advanced: {
cookiePrefix: 'dailydebrief'
},
cookie: 'dailydebrief.session_token=JDvM7r8lKh8WjJj5XD50x46eTaoczBua.redacted...' Versions:
"better-auth": "^1.2.3"
"@better-auth/stripe": "^1.2.3",
"better-auth": "^1.2.3"
"@better-auth/stripe": "^1.2.3",
22 replies
BABetter Auth
Created by sanser on 3/5/2025 in #help
/api/auth/subscription/upgrade 404 with stripe plugin
thanks this worked- the docs did not make this clear on where to put the subscription object. i had it outside the plugin
6 replies
BABetter Auth
Created by sanser on 3/5/2025 in #help
/api/auth/subscription/upgrade 404 with stripe plugin
thanks so much!! il take a look- is that object subscription object inside the plugin??? i think thats where im going wrong
6 replies
BABetter Auth
Created by Izak Filmalter on 3/4/2025 in #bug-reports
Seems like stripe schema isn't working.
im also getting this- using sveltekit and not getting a stripe schema created- it seems like its not registering my plugin at all, also getting 404 on stripe plugin endpoints?
3 replies
BABetter Auth
Created by sanser on 3/5/2025 in #help
/api/auth/subscription/upgrade 404 with stripe plugin
how should the stripe schema look, its only added stripeCustomerId in my user table?
6 replies
BABetter Auth
Created by sanser on 3/5/2025 in #bug-reports
404 with stripe plugin
how should the stripe schema look, its only added stripeCustomerId in my user table?
2 replies
BABetter Auth
Created by sanser on 2/2/2025 in #help
linkSocial with custom OAuth providers
thanks for the help!
25 replies