Hello, our team is working on an open-source proje...
# support-questions-legacy
m
Hello, our team is working on an open-source project, (https://agenta.ai/), and we've integrated SuperTokens for authentication. Currently, we use SuperTokens to handle authentication between our frontend and backend. Our backend is developed using Python with FastAPI. Below is a snippet of how we verify the session:
Copy code
python

@router.get("/get_variant_by_name/", response_model=AppVariant)
async def get_variant_by_name(
    app_name: str,
    variant_name: str,
    stoken_session: SessionContainer = Depends(verify_session()),
):
    kwargs = await get_user_and_org_id(stoken_session)
We're now exploring options to let users directly interact with our backend using their own code. One solution we're considering is enabling users to generate API keys from our platform, which they can then include in the Bearer token when calling our backend endpoints. Is there a way to implement this using SuperTokens, or can it be added alongside SuperTokens in the backend? Thanks!