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

add option for token key in login response #3

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

kurorido
Copy link
Contributor

Laravel Resource response generally wrap in the data key.

We're heavily following Resource convention in Laravel, that's why we need to define the token key as "data.token" in the login response.

References: https://laravel.com/docs/11.x/eloquent-resources

@hkp22 hkp22 merged commit 31740a5 into qirolab:main Oct 28, 2024
2 checks passed
@hkp22
Copy link
Member

hkp22 commented Oct 28, 2024

Thanks for the contribution!

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

Successfully merging this pull request may close these issues.

2 participants