Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checking if related User has a valid token #6

Open
paulo-hortelan opened this issue Sep 25, 2024 · 3 comments
Open

Checking if related User has a valid token #6

paulo-hortelan opened this issue Sep 25, 2024 · 3 comments

Comments

@paulo-hortelan
Copy link

Is there a method to, without the token, check if the related User has any valid token? In case not and you believe that this would be a nice new feature, I could do a pull request

@khanzadimahdi
Copy link
Member

Hi Paulo, thanks for creating this issue.
what would be the use case of this feature?

@paulo-hortelan
Copy link
Author

I need to know if the user has any valid token before allowing him to create a new one. Basically, is the token/pin Forgot password.

Right now I'm looping through the users related tokens and checking if if he has one valid but having a method that can do that would be great.

@khanzadimahdi
Copy link
Member

I agree that it's a good idea to add functionality to get user's valid tokens by type.

could you please create a PR for that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants