sh1man
Cookie bug
https://github.com/sh1man999/solidstart-auth.git
The problem is the following:
After I called logInAction, I set cookies and redirected to the main page, but the redirect did not occur
12 replies
what's the difference between? createResource andcreateAsync
and who can write about createAsync in more detail
essentially createAsync is a wrapper over createResource, but I don’t remember what it’s for?
and why do you need to indicate on the routes
export const route = {
load: () => historyLoadPdfFile()
} satisfies RouteDefinition;
6 replies
what write so as not to constantly write a redirect in every function in case of unauthorize
I don’t have a database on the solidstart server, I only work with third-party APIs. Where to store user information.
I want not to write in some functions constantly the same code for processing unauthorized.
You need to write a wrapper function?
19 replies
Custom auth solidstart by prisma
Can anyone help me make my authorization on solidstart? I have orm prisma. I created a user table, what else do I need? 1) how to authorize a user, I have an endpoint trpc. 2) when entering the site, I should receive information about the user; if the error code is 401, then the user is redirected to the logIn page
73 replies