mirror of
https://github.com/warmbly/warmbly.git
synced 2026-08-20 08:01:26 +00:00
20 lines
504 B
Go
20 lines
504 B
Go
package models
|
|
|
|
import (
|
|
"github.com/meszmate/apple-go"
|
|
"github.com/meszmate/google-go"
|
|
)
|
|
|
|
type ExternalAuth struct {
|
|
AppleAuth apple.AppleAuth
|
|
GoogleAuth *google.GoogleAuth
|
|
}
|
|
|
|
// ExternalAuthProviders is what GET /auth/providers advertises so one shipped
|
|
// native app binary can discover which social sign-in options a (self-)hosted
|
|
// backend supports. Client IDs here are public identifiers, not secrets.
|
|
type ExternalAuthProviders struct {
|
|
AppleBundleID string
|
|
GoogleIOSClientID string
|
|
}
|