supertokens / supertokens-core

Open source alternative to Auth0 / Firebase Auth / AWS Cognito
https://supertokens.com
Other
12.64k stars 488 forks source link

Do not try to determine storage in API layer #944

Open sattvikc opened 6 months ago

sattvikc commented 6 months ago

🐛 Bug Report

Refactor API layer in such a way that we don't need to figure out the storage in the API layer and then pass it to the function layer. Function layer should determine the storage layer by itself so that it's easy to call them from API layer and reduce mistakes with regards to which storage to use for the required purpose.

Useful informations

(Write what happened. Add screenshots, stacktraces, videos, anything that can help)

erzohrakhan commented 4 months ago

@sattvikc Can I work on this issue?

sahilsekr42 commented 2 months ago

@sattvikc I just found this issue to work on but I don't seem to understand what figuring out storage in api layer here refers to . As far as I can understand the api layer probably refers to backend sdks interfacing the core or is it the interface between core and database being used and is function layer is the core . does storage layer refer to the database and where is this figuring out happening.