added ProviderName and ProviderClient fields to core.RecordAuthWithOAuth2Event

This commit is contained in:
Gani Georgiev
2023-03-26 19:32:23 +03:00
parent f024de3cc4
commit 3a5d3d521f
4 changed files with 22 additions and 11 deletions
+6 -1
View File
@@ -28,7 +28,12 @@
- Added `migrate history-sync` command to clean `_migrations` history table from deleted migration files references.
- Added `core.RecordAuthWithOAuth2Event.IsNewRecord` bool field to indicate whether the OAuth2 action created a new auth record.
- Added new fields to the `core.RecordAuthWithOAuth2Event` struct:
```
IsNewRecord bool, // boolean field indicating whether the OAuth2 action created a new auth record
ProviderName string, // the name of the OAuth2 provider (eg. "google")
ProviderClient auth.Provider, // the loaded Provider client instance
```
- **!** Renamed `daos.GetTableColumns()` to `daos.TableColumns()` for consistency with the other Dao table related helpers.