Skip to main content
Solved

How to save user login session for an hour on Figma?

  • February 9, 2022
  • 1 reply
  • 1540 views

Saifylis

My plugin prompts the user to login via entering email and password, after authentication; they can proceed to use the plugin.

However on closing and then reopening the plugin, it asks for login information again. I want to retain user login information in some storage from which it could be checked if a user had logged in within the previous hour to avoid asking login information again.

For websites, I’ve done this by saving user login information in the “Local Storage” of the browser. Can something similar be done for Figma desktop app?

Best answer by tank666

Yes, you can use figma.clientStorage.

figma.com
View original

1 reply

tank666
  • 4863 replies
  • Answer
  • February 9, 2022

Yes, you can use figma.clientStorage.

figma.com

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings