Skip to content

Commit

Permalink
staging Fix a bug with handling google auth id and checking auth state
Browse files Browse the repository at this point in the history
  • Loading branch information
latheesan-k committed Nov 17, 2024
1 parent c6cdf6b commit 18d96f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions application/app/Http/Controllers/API/AuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ public function check(string $publicApiKey, Request $request): JsonResponse
$project = Project::query()
->where('public_api_key', $publicApiKey)
->with(['accounts' => function ($query) {
$query->orderBy('id', 'desc')->limit(1);
$query->with(['sessions' => function ($query) {
$query->orderBy('id', 'desc')->limit(1);
}]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function up(): void
$table->id();
$table->foreignId('project_id')->constrained('projects');
$table->string('auth_provider', 32);
$table->unsignedBigInteger('auth_provider_id')->nullable();
$table->string('auth_provider_id', 128)->nullable();
$table->string('auth_name', 1024)->nullable();
$table->string('auth_email', 1024)->nullable();
$table->string('auth_avatar', 1024)->nullable();
Expand Down

0 comments on commit 18d96f8

Please sign in to comment.