File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 1212 thirdparty ,
1313 thirdpartyemailpassword ,
1414 thirdpartypasswordless ,
15+ userroles ,
1516)
1617from supertokens_python .recipe .emailpassword import EmailPasswordRecipe
1718from supertokens_python .recipe .emailpassword .interfaces import (
8182from supertokens_python .recipe .thirdpartypasswordless .interfaces import (
8283 APIInterface as ThirdpartyPasswordlessAPIInterface ,
8384)
85+ from supertokens_python .recipe .userroles import UserRolesRecipe
8486from supertokens_python .types import GeneralErrorResponse
8587from typing_extensions import Literal
8688
@@ -240,13 +242,15 @@ def custom_init(
240242 None , Literal ["USER_INPUT_CODE" , "MAGIC_LINK" , "USER_INPUT_CODE_AND_MAGIC_LINK" ]
241243 ] = None ,
242244):
245+ UserRolesRecipe .reset ()
243246 PasswordlessRecipe .reset ()
244247 ThirdPartyPasswordlessRecipe .reset ()
245248 JWTRecipe .reset ()
246249 EmailVerificationRecipe .reset ()
247250 SessionRecipe .reset ()
248251 ThirdPartyRecipe .reset ()
249252 EmailPasswordRecipe .reset ()
253+ EmailVerificationRecipe .reset ()
250254 ThirdPartyEmailPasswordRecipe .reset ()
251255 Supertokens .reset ()
252256
@@ -849,6 +853,7 @@ async def authorisation_url_get(
849853 )
850854
851855 recipe_list = [
856+ userroles .init (),
852857 session .init (override = session .InputOverrideConfig (apis = override_session_apis )),
853858 emailverification .init (
854859 mode = "OPTIONAL" ,
Original file line number Diff line number Diff line change 3535 thirdparty ,
3636 thirdpartyemailpassword ,
3737 thirdpartypasswordless ,
38+ userroles ,
3839)
3940from supertokens_python .recipe .emailpassword import EmailPasswordRecipe
4041from supertokens_python .recipe .emailpassword .interfaces import (
111112from supertokens_python .recipe .thirdpartypasswordless .interfaces import (
112113 APIInterface as ThirdpartyPasswordlessAPIInterface ,
113114)
114- from supertokens_python .recipe .userroles import UserRoleClaim , PermissionClaim
115+ from supertokens_python .recipe .userroles import (
116+ UserRoleClaim ,
117+ PermissionClaim ,
118+ UserRolesRecipe ,
119+ )
115120from supertokens_python .recipe .userroles .asyncio import (
116121 create_new_role_or_add_permissions ,
117122 add_role_to_user ,
@@ -275,13 +280,15 @@ def custom_init(
275280 None , Literal ["USER_INPUT_CODE" , "MAGIC_LINK" , "USER_INPUT_CODE_AND_MAGIC_LINK" ]
276281 ] = None ,
277282):
283+ UserRolesRecipe .reset ()
278284 PasswordlessRecipe .reset ()
279285 ThirdPartyPasswordlessRecipe .reset ()
280286 JWTRecipe .reset ()
281287 EmailVerificationRecipe .reset ()
282288 SessionRecipe .reset ()
283289 ThirdPartyRecipe .reset ()
284290 EmailPasswordRecipe .reset ()
291+ EmailVerificationRecipe .reset ()
285292 ThirdPartyEmailPasswordRecipe .reset ()
286293 Supertokens .reset ()
287294
@@ -904,6 +911,7 @@ async def authorisation_url_get(
904911 )
905912
906913 recipe_list = [
914+ userroles .init (),
907915 session .init (override = session .InputOverrideConfig (apis = override_session_apis )),
908916 emailverification .init (
909917 mode = "OPTIONAL" ,
You can’t perform that action at this time.
0 commit comments