Add first login route

This commit is contained in:
Achim Rohn
2025-09-17 16:30:18 +02:00
parent 2a3506d21b
commit 8bc7b1e27b
9 changed files with 104 additions and 21 deletions
+7
View File
@@ -0,0 +1,7 @@
package schema
import "golang.org/x/oauth2"
type Credentials struct {
Token oauth2.Token `json:"token"`
}
+1 -2
View File
@@ -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{}),
}
}