class GithubLoginState(models.Model):
"""
This model is used to store the state of the login process. Along with it,
it also stores the redirect URL for the state.
"""
state = models.UUIDField(default=uuid.uuid4)
redirect_url = models.URLField()
created_at = models.DateTimeField(auto_now_add=True)
def __str__(self) -> str:
return self.state.__str__()
class GithubLoginState(models.Model):
"""
This model is used to store the state of the login process. Along with it,
it also stores the redirect URL for the state.
"""
state = models.UUIDField(default=uuid.uuid4)
redirect_url = models.URLField()
created_at = models.DateTimeField(auto_now_add=True)
def __str__(self) -> str:
return self.state.__str__()