Logo
Explore Help
Register Sign In
matt/opnform-host-nginx
1
0
Fork 0
You've already forked opnform-host-nginx
Code Issues Pull Requests Packages Projects Releases Wiki Activity
Files
053abbf31bec796a0689a7ae9c6b62f57935837b
opnform-host-nginx/api/app/Http/Controllers/Integrations/Zapier/ValidateAuthController.php

19 lines
305 B
PHP
Raw Normal View History

Zapier integration (#491) * create zapier app * install sanctum * move OAuthProviderController * make `api-external` middleware * add zapier endpoints * add tests * token management * zapier event handler * add policy * use `slug` instead of `id` * wip * check policies * change api prefix to `external` * ui tweaks * validate token abilities * open zapier URL * zapier ui tweaks * update zap * Fix linting * Added sample endpoints + minor UI changes * Run PHP code linter --------- Co-authored-by: Julien Nahum <julien@nahum.net>
2024-08-12 02:14:02 -07:00
<?php
namespace App\Http\Controllers\Integrations\Zapier;
use Illuminate\Support\Facades\Auth;
class ValidateAuthController
{
public function __invoke()
{
$user = Auth::user();
return [
'name' => $user->name,
'email' => $user->email,
];
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.5 Page: 41ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API