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 12
12
thirdparty ,
13
13
thirdpartyemailpassword ,
14
14
thirdpartypasswordless ,
15
+ userroles ,
15
16
)
16
17
from supertokens_python .recipe .emailpassword import EmailPasswordRecipe
17
18
from supertokens_python .recipe .emailpassword .interfaces import (
81
82
from supertokens_python .recipe .thirdpartypasswordless .interfaces import (
82
83
APIInterface as ThirdpartyPasswordlessAPIInterface ,
83
84
)
85
+ from supertokens_python .recipe .userroles import UserRolesRecipe
84
86
from supertokens_python .types import GeneralErrorResponse
85
87
from typing_extensions import Literal
86
88
@@ -240,13 +242,15 @@ def custom_init(
240
242
None , Literal ["USER_INPUT_CODE" , "MAGIC_LINK" , "USER_INPUT_CODE_AND_MAGIC_LINK" ]
241
243
] = None ,
242
244
):
245
+ UserRolesRecipe .reset ()
243
246
PasswordlessRecipe .reset ()
244
247
ThirdPartyPasswordlessRecipe .reset ()
245
248
JWTRecipe .reset ()
246
249
EmailVerificationRecipe .reset ()
247
250
SessionRecipe .reset ()
248
251
ThirdPartyRecipe .reset ()
249
252
EmailPasswordRecipe .reset ()
253
+ EmailVerificationRecipe .reset ()
250
254
ThirdPartyEmailPasswordRecipe .reset ()
251
255
Supertokens .reset ()
252
256
@@ -849,6 +853,7 @@ async def authorisation_url_get(
849
853
)
850
854
851
855
recipe_list = [
856
+ userroles .init (),
852
857
session .init (override = session .InputOverrideConfig (apis = override_session_apis )),
853
858
emailverification .init (
854
859
mode = "OPTIONAL" ,
Original file line number Diff line number Diff line change 35
35
thirdparty ,
36
36
thirdpartyemailpassword ,
37
37
thirdpartypasswordless ,
38
+ userroles ,
38
39
)
39
40
from supertokens_python .recipe .emailpassword import EmailPasswordRecipe
40
41
from supertokens_python .recipe .emailpassword .interfaces import (
111
112
from supertokens_python .recipe .thirdpartypasswordless .interfaces import (
112
113
APIInterface as ThirdpartyPasswordlessAPIInterface ,
113
114
)
114
- from supertokens_python .recipe .userroles import UserRoleClaim , PermissionClaim
115
+ from supertokens_python .recipe .userroles import (
116
+ UserRoleClaim ,
117
+ PermissionClaim ,
118
+ UserRolesRecipe ,
119
+ )
115
120
from supertokens_python .recipe .userroles .asyncio import (
116
121
create_new_role_or_add_permissions ,
117
122
add_role_to_user ,
@@ -275,13 +280,15 @@ def custom_init(
275
280
None , Literal ["USER_INPUT_CODE" , "MAGIC_LINK" , "USER_INPUT_CODE_AND_MAGIC_LINK" ]
276
281
] = None ,
277
282
):
283
+ UserRolesRecipe .reset ()
278
284
PasswordlessRecipe .reset ()
279
285
ThirdPartyPasswordlessRecipe .reset ()
280
286
JWTRecipe .reset ()
281
287
EmailVerificationRecipe .reset ()
282
288
SessionRecipe .reset ()
283
289
ThirdPartyRecipe .reset ()
284
290
EmailPasswordRecipe .reset ()
291
+ EmailVerificationRecipe .reset ()
285
292
ThirdPartyEmailPasswordRecipe .reset ()
286
293
Supertokens .reset ()
287
294
@@ -904,6 +911,7 @@ async def authorisation_url_get(
904
911
)
905
912
906
913
recipe_list = [
914
+ userroles .init (),
907
915
session .init (override = session .InputOverrideConfig (apis = override_session_apis )),
908
916
emailverification .init (
909
917
mode = "OPTIONAL" ,
You can’t perform that action at this time.
0 commit comments