worldcoin / developer-portal

The Worldcoin Developer Portal provides tools to interact with the Worldcoin SDK. Easiest way to get started with World ID.
https://developer.worldcoin.org
MIT License
59 stars 31 forks source link

fix: delete team #632

Closed igorosip0v closed 4 months ago

igorosip0v commented 4 months ago
andy-t-wang commented 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?

igorosip0v commented 4 months ago

@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.

andy-t-wang commented 4 months ago

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?

andy-t-wang commented 4 months ago

Synced on this, server actions are experimental still so we are not using them as they throw weird errors