File tree 2 files changed +9
-5
lines changed
samples/identity/functions
2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ def beforeusersignedin(
42
42
43
43
44
44
@identity_fn .before_email_sent ()
45
+ # pylint: disable=useless-return
45
46
def beforeemailsent (
46
47
event : identity_fn .AuthBlockingEvent
47
48
) -> identity_fn .BeforeEmailSentResponse | None :
@@ -50,6 +51,7 @@ def beforeemailsent(
50
51
51
52
52
53
@identity_fn .before_sms_sent ()
54
+ # pylint: disable=useless-return
53
55
def beforesmssent (event : identity_fn .AuthBlockingEvent ) -> identity_fn .BeforeSmsSentResponse | None :
54
56
print (event )
55
57
return None
Original file line number Diff line number Diff line change @@ -987,12 +987,14 @@ def _endpoint(
987
987
988
988
if kwargs ["event_type" ] == event_type_before_create or kwargs [
989
989
"event_type" ] == event_type_before_sign_in :
990
+ options = _typing .cast (BlockingOptions , self )
990
991
blocking_trigger_options = _manifest .BlockingTriggerOptions (
991
- idToken = self .id_token if self .id_token is not None else False ,
992
- accessToken = self .access_token
993
- if self .access_token is not None else False ,
994
- refreshToken = self .refresh_token
995
- if self .refresh_token is not None else False ,
992
+ idToken = options .id_token
993
+ if options .id_token is not None else False ,
994
+ accessToken = options .access_token
995
+ if options .access_token is not None else False ,
996
+ refreshToken = options .refresh_token
997
+ if options .refresh_token is not None else False ,
996
998
)
997
999
else :
998
1000
blocking_trigger_options = _manifest .BlockingTriggerOptions ()
You can’t perform that action at this time.
0 commit comments