TheGuy
Explore posts from serversBABetter Auth
•Created by TheGuy on 4/8/2025 in #help
Magic Link Expiry
Hi there.
When it comes to the expiry of a magic link we noticed that it is set 2h behind. Now we have our DB hosted in the UK (MongoDB) and work in. South Africa.
Are the expiry dates of these tokens based on the DB time or server time? Essentially when working locally we have a our server obviously booted on a SA timezone. So just trying to understand where this behavior comes in?
Thanks
7 replies
Aarktype
•Created by TheGuy on 4/3/2025 in #questions
Arktype Error instance of?
Hi there.
If I have
And that throws what would that error be an instance of that I can use? tried
error instanceof type.errors || error instanceof ArkErrors
with no luck.
Thanks!4 replies
Aarktype
•Created by TheGuy on 2/28/2025 in #questions
Is there a good way to use an array of fields mapped from an object into array as string literals?
So probably really simple and I am just missing something.
I am trying to achieve the following:
Not sure if this is possible but I may be missing something? The issue obviously comes in that its not a
as const
. But trying to figure out how I can achieve something like that. In this case its supposed to be an array of those strings.12 replies
Aarktype
•Created by TheGuy on 2/26/2025 in #questions
How to choose "one of" in a type?
Hi there!
For example here I am wanting to have either or as an object. So saying that if there is no _id then there has to be an "email" and visa versa. Not sure how to achieve this
Thanks!
21 replies
BABetter Auth
•Created by TheGuy on 2/26/2025 in #help
How to return custom session with modified DB fields

5 replies
BABetter Auth
•Created by TheGuy on 2/26/2025 in #bug-reports
Getting a 404 on useSession and unable to use Svelte Store

5 replies