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

token with id #143

Closed
rivassh opened this issue May 18, 2020 · 5 comments
Closed

token with id #143

rivassh opened this issue May 18, 2020 · 5 comments

Comments

@rivassh
Copy link

rivassh commented May 18, 2020

return new NewAccessToken($token, $token->id.'|'.$plainTextToken);

according to line above when I want create new token , it return me token with ID but it another computer it return without id.
when I test Bearer token with id it faild but when I remove id it works.
why the id attached to token?
=> Laravel\Sanctum\NewAccessToken {#4592 +accessToken: Laravel\Sanctum\PersonalAccessToken {#4681 name: "test", abilities: "["*"]", tokenable_id: 2, tokenable_type: "App\User", updated_at: "2020-05-18 07:54:16", created_at: "2020-05-18 07:54:16", id: 63, }, +plainTextToken: "63|rWkz6zVJrdb6sHcc3gyotazsroTelysKbRFPFtpcsmE2NC9R50LakS4kZS5YrnAh7b4UkcddZRPsicsL", }

@driesvints
Copy link
Member

Please see #136

@atva-dev
Copy link

atva-dev commented Jun 5, 2020

So should we remove the id in our code?
I have tested with and without the token id and both work. Is this correct?

@driesvints
Copy link
Member

Yes

@PeteJStewart
Copy link

PeteJStewart commented Aug 21, 2020

Yes

What was this 'Yes' response to?

So should we remove the id in our code?

or

I have tested with and without the token id and both work. Is this correct?

Do we send the Bearer token with ID, or do we need to remove the ID and pipe?

@driesvints
Copy link
Member

That was to

I have tested with and without the token id and both work. Is this correct?

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

4 participants