1- use chrono:: { DateTime , Utc } ;
1+ use chrono:: { DateTime , FixedOffset } ;
22
33#[ derive( Clone , Debug ) ]
44pub struct OidcConnection {
@@ -8,7 +8,7 @@ pub struct OidcConnection {
88 pub access_token : String ,
99 pub refresh_token : Option < String > ,
1010 pub id_token : Option < String > ,
11- pub expired_at : Option < DateTime < Utc > > ,
11+ pub expired_at : Option < DateTime < FixedOffset > > ,
1212 pub scopes : Option < Vec < String > > ,
1313 pub subprovider_id : String ,
1414 pub user_id : String ,
@@ -21,7 +21,7 @@ pub struct CreateOidcConnection {
2121 pub access_token : String ,
2222 pub refresh_token : Option < String > ,
2323 pub id_token : Option < String > ,
24- pub expired_at : Option < DateTime < Utc > > ,
24+ pub expired_at : Option < DateTime < FixedOffset > > ,
2525 pub scopes : Option < Vec < String > > ,
2626 pub subprovider_id : String ,
2727 pub user_id : String ,
@@ -34,6 +34,6 @@ pub struct UpdateOidcConnection {
3434 pub access_token : Option < String > ,
3535 pub refresh_token : Option < Option < String > > ,
3636 pub id_token : Option < Option < String > > ,
37- pub expired_at : Option < Option < DateTime < Utc > > > ,
37+ pub expired_at : Option < Option < DateTime < FixedOffset > > > ,
3838 pub scopes : Option < Option < Vec < String > > > ,
3939}
0 commit comments