kakashi_44
07/13/2021, 3:56 PMpython
from supertokens_fastapi import init, get_all_cors_headers, session, emailpassword
from supertokens_fastapi.emailpassword.types import User
...
async def create_and_send_custom_email(user: User, password_reset_url_with_token: str):
pass
# TODO
init(app, {
'supertokens': {
'connection_uri': "...",
},
'app_info': {
'app_name': "...",
'api_domain': "...",
'website_domain': "...",
'api_base_path': "..."
},
'recipe_list': [emailpassword.init({
'reset_password_using_token_feature': {
'create_and_send_custom_email': create_and_send_custom_email
}
}), session.init()]
})