Laravel Google Login Backend
Budget / SalaryHourly project
TypeFreelance project
LocationRemote
Posted16 hours ago
I need a clean Laravel 10 backend that focuses on two core tasks:
1. Secure user-profile management (create, read, update, delete).
2. Authentication handled solely through Google Sign-In.
You can rely on Laravel Socialite—or a comparable package you prefer—for the OAuth flow, but I do want the implementation written clearly enough that I can swap keys or add more providers later without touching core logic.
Scope of work
• Build migrations, models, and controllers for basic profile data (name, avatar URL, e-mail saved from Google, plus any refresh tokens your flow requires).
• Implement the Google login route, callback, and token exchange, returning a signed JWT for subsequent API calls.
• Add middleware to guard protected routes and demonstrate it with a simple /me endpoint returning the authenticated profile.
• Provide concise setup instructions and a Postman (or curl) collection so I can test the full signup / login / protected-route cycle locally.
Acceptance criteria
• A fresh Laravel install clones, runs php artisan migrate, sets Google credentials in .env, and authenticates successfully.
• After login, the issued token lets me hit /me and receive the correct JSON profile.
• Code passes php artisan test with at least one feature test covering the OAuth callback.
Feel free to use Sanctum, Passport, or tymon/jwt-auth—just note which in your README. If you need anything clarified, let me know and I’ll respond quickly so development can stay on schedule.
1. Secure user-profile management (create, read, update, delete).
2. Authentication handled solely through Google Sign-In.
You can rely on Laravel Socialite—or a comparable package you prefer—for the OAuth flow, but I do want the implementation written clearly enough that I can swap keys or add more providers later without touching core logic.
Scope of work
• Build migrations, models, and controllers for basic profile data (name, avatar URL, e-mail saved from Google, plus any refresh tokens your flow requires).
• Implement the Google login route, callback, and token exchange, returning a signed JWT for subsequent API calls.
• Add middleware to guard protected routes and demonstrate it with a simple /me endpoint returning the authenticated profile.
• Provide concise setup instructions and a Postman (or curl) collection so I can test the full signup / login / protected-route cycle locally.
Acceptance criteria
• A fresh Laravel install clones, runs php artisan migrate, sets Google credentials in .env, and authenticates successfully.
• After login, the issued token lets me hit /me and receive the correct JSON profile.
• Code passes php artisan test with at least one feature test covering the OAuth callback.
Feel free to use Sanctum, Passport, or tymon/jwt-auth—just note which in your README. If you need anything clarified, let me know and I’ll respond quickly so development can stay on schedule.
Apply on Freelancer →
Project sourced from Freelancer.com. Applications happen directly on the original platform — we never collect your data.