devrim
devrim
WWasp-lang
Created by devrim on 9/13/2024 in #đŸ™‹questions
is there a way to hard restart the app? if i change an api file need to restart manually
hi @martinsos just using mac.. i can send you a loom if you like, but plainly if i have an endpoint defined in main.wasp, it's file is on src/x/y.tsx it won't get updated unless i ctrl-c + wasp start even though, it picks up on file change, seems to reload everything. if it's a client file, it does update. no errors
11 replies
WWasp-lang
Created by devrim on 9/13/2024 in #đŸ™‹questions
is there a way to hard restart the app? if i change an api file need to restart manually
@kapa.ai that is not my question, it does restart but doesn't take in the changes.
11 replies
WWasp-lang
Created by devrim on 8/30/2024 in #đŸ™‹questions
Implementing a user sign-in to multiple accounts, and placing an account switcher.
oh wow! didn't know you guys were this fast! (oops. edit, thought it was a PR đŸ˜„ my bad, still impressive though!)
66 replies
WWasp-lang
Created by devrim on 8/30/2024 in #đŸ™‹questions
Implementing a user sign-in to multiple accounts, and placing an account switcher.
>We keep the session ID in local storage. You could keep track of the session ID for each account somehow and just swap it out so things in Wasp keep working as Wasp expects them to. perfect. thanks @miho
66 replies
WWasp-lang
Created by devrim on 8/30/2024 in #đŸ™‹questions
Implementing a user sign-in to multiple accounts, and placing an account switcher.
also need to find out where it's being set, and hopefully we can get a hook back vs changing the wasp internals
66 replies
WWasp-lang
Created by devrim on 8/30/2024 in #đŸ™‹questions
Implementing a user sign-in to multiple accounts, and placing an account switcher.
cool that's what i was asking for. so that sessionId establishes the auth?
66 replies
WWasp-lang
Created by devrim on 8/30/2024 in #đŸ™‹questions
Implementing a user sign-in to multiple accounts, and placing an account switcher.
Yes but not that difficult. Just need to know what wasp is using to auth a user in the browser (is that a cookie? Or some react vars?)), and set that to local storage and set it back upon switch.
66 replies
WWasp-lang
Created by devrim on 8/30/2024 in #đŸ™‹questions
Implementing a user sign-in to multiple accounts, and placing an account switcher.
This way we will know all accounts of the user, display in a list
66 replies
WWasp-lang
Created by devrim on 8/30/2024 in #đŸ™‹questions
Implementing a user sign-in to multiple accounts, and placing an account switcher.
Usually when the auth completes with one account it sets a cookie, you write that cookie to local storage, with an expiration date, when user switches back, you set that cookie back so that user do not need to enter password
66 replies
WWasp-lang
Created by devrim on 8/30/2024 in #đŸ™‹questions
Implementing a user sign-in to multiple accounts, and placing an account switcher.
Hi @sodic yes you got it. there are many of them surely you know, Instagram Twitter slack to name a few. I found this article that goes over: https://medium.com/@Shiran/it-is-all-about-the-feature-experience-today-switching-accounts-3c3626675227
66 replies
WWasp-lang
Created by devrim on 8/30/2024 in #đŸ™‹questions
Implementing a user sign-in to multiple accounts, and placing an account switcher.
@sodic would you have an idea about this?
66 replies
WWasp-lang
Created by devrim on 8/30/2024 in #đŸ™‹questions
Implementing a user sign-in to multiple accounts, and placing an account switcher.
also not the problem. SSO means, i log in with my gmail, and that logs me in to my work emails.
66 replies
WWasp-lang
Created by devrim on 8/30/2024 in #đŸ™‹questions
Implementing a user sign-in to multiple accounts, and placing an account switcher.
SSO in this case would be non-compliant, and a non-starter
66 replies
WWasp-lang
Created by devrim on 8/30/2024 in #đŸ™‹questions
Implementing a user sign-in to multiple accounts, and placing an account switcher.
look i want to be polite, but SSO ain't it. if you could stop suggesting that that'd be great so others can chime in
66 replies
WWasp-lang
Created by devrim on 8/30/2024 in #đŸ™‹questions
Implementing a user sign-in to multiple accounts, and placing an account switcher.
maybe someone else made something similar, i'll stand by.
66 replies
WWasp-lang
Created by devrim on 8/30/2024 in #đŸ™‹questions
Implementing a user sign-in to multiple accounts, and placing an account switcher.
no we're not talking about SSO. but thanks.
66 replies
WWasp-lang
Created by devrim on 8/30/2024 in #đŸ™‹questions
Implementing a user sign-in to multiple accounts, and placing an account switcher.
as in, you want to check your gmail, then want to check your work emails. you don't logout of gmail, you switch.
66 replies
WWasp-lang
Created by devrim on 8/30/2024 in #đŸ™‹questions
Implementing a user sign-in to multiple accounts, and placing an account switcher.
that won't do it. companies would like full control of company accounts, can't be connected to the other. good way to think about this, you have two sets of username/password, how can we switch between them without making user logout
66 replies
WWasp-lang
Created by devrim on 8/30/2024 in #đŸ™‹questions
Implementing a user sign-in to multiple accounts, and placing an account switcher.
No description
66 replies
WWasp-lang
Created by devrim on 8/30/2024 in #đŸ™‹questions
Implementing a user sign-in to multiple accounts, and placing an account switcher.
plus your personal
66 replies