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
This would also make the code a bit cleaner since we won't have to poke the environment variables to find the home directory just to get the user's access token.
// Add new user (nest login)addUser(username: string,token: string){constusers: Users=JSON.parse(localStorage.getItem('users'));users[username]={ token }localStorage.setItem('users',JSON.stringify(users);}addUser('maximousblk','NEST_6FF4C8F4374F46C5A5928AFE85C2354EA37AED00')// Change active user (nest switch)setActiveUser(username: string){localStorage.setItem('activeUser',username);}setActiveUser('maximousblk')
Alternatives
n/a
Additional context
n/a
The text was updated successfully, but these errors were encountered:
🚀 Feature
All the info that should not be view or edited by the user should be stored in localstorage.
Motivation
Deno added support for WebStorage API
blog post: https://deno.com/blog/v1.10#support-for-web-storage-api
This would also make the code a bit cleaner since we won't have to poke the environment variables to find the home directory just to get the user's access token.
pr: denoland/deno#7819
Implementation
The user would define the location during install like so:
and used like so:
Alternatives
n/a
Additional context
n/a
The text was updated successfully, but these errors were encountered: