Dynamic OauthDriver scope (#544)
* Dynamic OauthDriver scope * support migration for mysql * Refactor default scopes for integrations * Small UI changes * fix flet select tooltip * fix linter * Fix google token size in DB --------- Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
@@ -30,7 +30,8 @@ class OAuthProvider extends Model
|
||||
* @var array
|
||||
*/
|
||||
protected $hidden = [
|
||||
'access_token', 'refresh_token',
|
||||
'access_token',
|
||||
'refresh_token',
|
||||
];
|
||||
|
||||
protected function casts()
|
||||
@@ -38,6 +39,7 @@ class OAuthProvider extends Model
|
||||
return [
|
||||
'provider' => OAuthProviderService::class,
|
||||
'token_expires_at' => 'datetime',
|
||||
'scopes' => 'array'
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user