openfga.dev
openfga.dev copied to clipboard
Update integrating with a framework to show SDK initialized only once
https://openfga.dev/docs/getting-started/framework
https://github.com/openfga/openfga.dev/blob/main/docs/content/getting-started/framework.mdx#L326-L330 https://github.com/openfga/openfga.dev/blob/main/docs/content/getting-started/framework.mdx#L481-L486
These show the Client being re-initialized at every request which goes against our recommendations.
We should initialize the client only once and re-use it