Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time Zone and Availability of $response$lastLoginAt #57

Open
ghost opened this issue May 16, 2023 · 0 comments
Open

Time Zone and Availability of $response$lastLoginAt #57

ghost opened this issue May 16, 2023 · 0 comments

Comments

@ghost
Copy link

ghost commented May 16, 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.

@ghost ghost changed the title Time Zone of $response$lastLoginAt Time Zone and Availability of $response$lastLoginAt May 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants