jaygokhale
09/11/2022, 4:38 PMjaygokhale
09/11/2022, 4:38 PMcom.supertokens {"t": "2022-09-11T16:32:19.303Z", "sdkVer": "0.10.4", "message": "middleware: Started", "file": "supertokens.py:534"}
com.supertokens {"t": "2022-09-11T16:32:19.303Z", "sdkVer": "0.10.4", "message": "middleware: requestRID is: None", "file": "supertokens.py:547"}
com.supertokens {"t": "2022-09-11T16:32:19.303Z", "sdkVer": "0.10.4", "message": "middleware: Checking recipe ID for match: emailpassword", "file": "supertokens.py:571"}
com.supertokens {"t": "2022-09-11T16:32:19.303Z", "sdkVer": "0.10.4", "message": "middleware: Checking recipe ID for match: session", "file": "supertokens.py:571"}
com.supertokens {"t": "2022-09-11T16:32:19.303Z", "sdkVer": "0.10.4", "message": "middleware: Not handling because no recipe matched", "file": "supertokens.py:584"}
10.0.0.115 - - [11/Sep/2022 09:32:19] "GET /auth/verify-email?token=ZWU3YzUwYzdjYjU2MWZiZjdmMzJjMGIwYzMzODI2NTM3ZTc3YjA3ZjZlYTgxYTliMzMwZGQzNGM0NTUwNzVhYzNkYzZhOTVkN2E0MDZjMmYxMGUxYWVhYWIwODNkMzJk&rid=emailpassword HTTP/1.1" 404 -
Looking closer at the python SDK / it looks like it expects either a rid
set in the header of the GET /auth/verify-email
request or that this request shape matches an declared api handled by one of the recipes I'm using. Neither appear to be true.rp_st
09/11/2022, 4:39 PMrid=emailpassword
jaygokhale
09/11/2022, 4:40 PMrp_st
09/11/2022, 4:40 PMrp_st
09/11/2022, 4:41 PMrid
headerrp_st
09/11/2022, 4:41 PMjaygokhale
09/11/2022, 4:41 PMinit
call?jaygokhale
09/11/2022, 4:41 PMrp_st
09/11/2022, 4:41 PMjaygokhale
09/11/2022, 4:44 PMSuperTokens.init({
appInfo: {
appName: 'Mogara',
apiDomain: 'http://10.0.0.115:5000',
websiteDomain: 'http://10.0.0.115:5000',
apiBasePath: '/auth',
websiteBasePath: '/auth',
},
recipeList: [
EmailPassword.init({
emailVerificationFeature: {
mode: 'REQUIRED',
},
}),
Session.init(),
],
});
Backend: init(
app_info=InputAppInfo(
app_name="Mogara",
api_domain=API_DOMAIN, # http://10.0.0.115:5000
website_domain=WEBSITE_DOMAIN, # http://10.0.0.115:5000
api_base_path="/auth",
website_base_path="/auth"
),
supertokens_config=SupertokensConfig(
connection_uri=SUPERTOKENS_CONNECTION_URI,
api_key=SUPERTOKENS_API_KEY,
),
framework='flask',
recipe_list=[
emailpassword.init(),
session.init(),
]
)
jaygokhale
09/11/2022, 4:44 PMrp_st
09/11/2022, 4:44 PMrp_st
09/11/2022, 4:45 PMrp_st
09/11/2022, 4:45 PMrp_st
09/11/2022, 4:45 PM/supertokens
and websiteBasePath
can be /auth
rp_st
09/11/2022, 4:45 PMrp_st
09/11/2022, 4:45 PMjaygokhale
09/11/2022, 4:48 PMrp_st
09/11/2022, 4:48 PMrp_st
09/11/2022, 4:49 PMrp_st
09/11/2022, 4:50 PMjaygokhale
09/11/2022, 5:23 PMjaygokhale
09/11/2022, 5:23 PMapiBasePath
and websiteBasePath
different (in the way you suggested) doesn't appear to solve it.jaygokhale
09/11/2022, 5:43 PMrp_st
09/11/2022, 6:12 PMrp_st
09/11/2022, 6:13 PMjaygokhale
09/11/2022, 6:32 PMrp_st
09/11/2022, 7:14 PM