Add first login route
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
package schema
|
||||
|
||||
import "golang.org/x/oauth2"
|
||||
|
||||
type Credentials struct {
|
||||
Token oauth2.Token `json:"token"`
|
||||
}
|
||||
@@ -2,7 +2,6 @@ package schema
|
||||
|
||||
import (
|
||||
ersteller_ent "ersteller-lib/schema/ent"
|
||||
google "ersteller-lib/starter/google"
|
||||
|
||||
"entgo.io/ent"
|
||||
"entgo.io/ent/schema/edge"
|
||||
@@ -21,7 +20,7 @@ func (GoogleAuth) Mixin() []ent.Mixin {
|
||||
|
||||
func (GoogleAuth) Fields() []ent.Field {
|
||||
return []ent.Field{
|
||||
field.JSON("credentials", google.Credentials{}),
|
||||
field.JSON("credentials", Credentials{}),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user