We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0e1d1f commit 705000cCopy full SHA for 705000c
drfpasswordless/signals.py
@@ -28,6 +28,8 @@ def invalidate_previous_tokens(sender, instance, created, **kwargs):
28
def check_unique_tokens(sender, instance, **kwargs):
29
"""
30
Ensures that mobile and email tokens are unique or tries once more to generate.
31
+ Note that here we've decided keys are unique even across auth and validation.
32
+ We could consider relaxing this in the future as well by filtering on the instance.type.
33
34
if instance._state.adding:
35
# save is called on a token to create it in the db
0 commit comments