Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

helper for FastAPI Users to create a super user

superuser = await fastapi_users.create_user(
    UserCreate(
        email="king.arthur@camelot.bt",
        password="guinevere",
        is_superuser=True,
    )
)
Source by frankie567.github.io #
 
PREVIOUS NEXT
Tagged: #helper #FastAPI #Users #create #super #user
ADD COMMENT
Topic
Name
1+1 =