You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
ghost
changed the title
Time Zone of $response$lastLoginAt
Time Zone and Availability of $response$lastLoginAt
May 18, 2023
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.
The text was updated successfully, but these errors were encountered: