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

Hide logintoken #28

Open
eAvio opened this issue Mar 2, 2021 · 1 comment
Open

Hide logintoken #28

eAvio opened this issue Mar 2, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@eAvio
Copy link

eAvio commented Mar 2, 2021

On Laravel Nova user resource we also see login tonkes that are generated on user login.

Is there a way to hide that? We would only like user to see tokens manually added by him.

@JeffBeltran
Copy link
Owner

JeffBeltran commented Mar 2, 2021

There is no way to track who created the token with the out of the box sanctum package and i really don't want this package to touch that (or make changes to the DB). That being said i suppose we could add a feature to conditionally not show tokens and if you have a way to identify who created the token could pass that info along, but im not sure i have the appetite to work on that right now. However, i am open to a PR for this feature that is generic enough to work for any conditional showing of tokens.

@JeffBeltran JeffBeltran added the enhancement New feature or request label Mar 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants