feat: add auth_time, prompt, and max_age fields (#4662)

Signed-off-by: maksim.nabokikh <max.nabokih@gmail.com>
This commit is contained in:
Maksim Nabokikh
2026-03-19 15:53:15 +01:00
committed by GitHub
parent 7ec1760c6b
commit c3bc1d7466
35 changed files with 1558 additions and 51 deletions
+18
View File
@@ -134,6 +134,20 @@ func (_c *AuthCodeCreate) SetNillableCodeChallengeMethod(v *string) *AuthCodeCre
return _c
}
// SetAuthTime sets the "auth_time" field.
func (_c *AuthCodeCreate) SetAuthTime(v time.Time) *AuthCodeCreate {
_c.mutation.SetAuthTime(v)
return _c
}
// SetNillableAuthTime sets the "auth_time" field if the given value is not nil.
func (_c *AuthCodeCreate) SetNillableAuthTime(v *time.Time) *AuthCodeCreate {
if v != nil {
_c.SetAuthTime(*v)
}
return _c
}
// SetID sets the "id" field.
func (_c *AuthCodeCreate) SetID(v string) *AuthCodeCreate {
_c.mutation.SetID(v)
@@ -362,6 +376,10 @@ func (_c *AuthCodeCreate) createSpec() (*AuthCode, *sqlgraph.CreateSpec) {
_spec.SetField(authcode.FieldCodeChallengeMethod, field.TypeString, value)
_node.CodeChallengeMethod = value
}
if value, ok := _c.mutation.AuthTime(); ok {
_spec.SetField(authcode.FieldAuthTime, field.TypeTime, value)
_node.AuthTime = value
}
return _node, _spec
}