Hello,
I have two problems about the $lastLoginAt data provided after logging in.
(1)
I want to create an auto Logout after x minutes for my hosted App. For the current time I want to use Sys.time() which is the server time. If the current time exceeds the "$response$lastLoginAt" time + x minutes, the user shall be logged out.
So I want to ask whether the number of $response$lastLoginAt and the number as.numeric(Sys.time()) are comparable to each other. Otherwise my approach would be to convert the $response$lastLoginAt number to POSIXct and fit the time zone to the one of Sys.time(). After that, I would retransform the date with correct time zone to a number again.
(2)
It appears that if I log into the shiny app using firebase, the "get_signed_in()$response" object contains no $lastLoginAt or $createdAt data. Only if I reload the page this data shows up. Other data like $email is always available.
Thank you in advance.
Hello,
I have two problems about the $lastLoginAt data provided after logging in.
(1)
I want to create an auto Logout after x minutes for my hosted App. For the current time I want to use Sys.time() which is the server time. If the current time exceeds the "$response$lastLoginAt" time + x minutes, the user shall be logged out.
So I want to ask whether the number of $response$lastLoginAt and the number as.numeric(Sys.time()) are comparable to each other. Otherwise my approach would be to convert the $response$lastLoginAt number to POSIXct and fit the time zone to the one of Sys.time(). After that, I would retransform the date with correct time zone to a number again.
(2)
It appears that if I log into the shiny app using firebase, the "get_signed_in()$response" object contains no $lastLoginAt or $createdAt data. Only if I reload the page this data shows up. Other data like $email is always available.
Thank you in advance.