diff --git a/authentik/providers/oauth2/views/device_backchannel.py b/authentik/providers/oauth2/views/device_backchannel.py index 7818701b1..ff5168904 100644 --- a/authentik/providers/oauth2/views/device_backchannel.py +++ b/authentik/providers/oauth2/views/device_backchannel.py @@ -76,7 +76,7 @@ class DeviceView(View): } ), "user_code": token.user_code, - "expires_in": until.total_seconds(), + "expires_in": int(until.total_seconds()), "interval": 5, } )