Skip to content

API token created but the token is not showing #959

@ilasisi

Description

@ilasisi

image

I noticed the logic was created as a job and plainTextToken was called like;

$token = $user->tokens()->where('name', $request->name())->first();
$token->plainTextToken;

Which would definitely returned null as plainTextToken is not directly available on the model but returned when called createToken().

So I raised a PR to fixed this, you can find it here #960.

@driesvints

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions