mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-11-04 19:17:25 +01:00
[#276] added support for linking external auths by provider id
This commit is contained in:
1 parent
9fe94f5c7d
commit
f5ff7193a9
33 files changed
+924
-223
No files matched your search
@@ -0,0 +1,15 @@
|
||||
package models
|
||||
|
||||
var _ Model = (*ExternalAuth)(nil)
|
||||
|
||||
type ExternalAuth struct {
|
||||
BaseModel
|
||||
|
||||
UserId string `db:"userId" json:"userId"`
|
||||
Provider string `db:"provider" json:"provider"`
|
||||
ProviderId string `db:"providerId" json:"providerId"`
|
||||
}
|
||||
|
||||
func (m *ExternalAuth) TableName() string {
|
||||
return "_externalAuths"
|
||||
}
|
||||
Reference in new issue
Block a user