Closed igorosip0v closed 4 months ago
I dont understand why we make this an endpoint? We are not going to be updating session outside of the app. Server actions seems better then?
@andy-t-wang
I dont understand why we make this an endpoint? We are not going to be updating session outside of the app. Server actions seems better then?
We can update the session only from server action or from the route handler. I didn't succeed in figuring out why we had Error: Failed to find Server Action
error. But with the endpoint that does the same we don't have such an error.
Hmm if this isn't related to the server action error then there' no need to make it an endpoint. I feel like it would be better to leave as a server action then so it's not exposed?
Synced on this, server actions are experimental still so we are not using them as they throw weird errors