Skip to content

Conversation

@AndrewGable
Copy link
Contributor

Implemented infinite sessions:

  1. On the sign in page pass useExpensifyLogin = true for the first Authenticate which will create a new login via CreateLogin
  2. In CreateLogin use React-Native-Chat-${guid} for the login name and ${guid} for the password
  3. Store the random login and password
  4. Store the last time we successfully authenticated
  5. When calling verifyAuthToken check the last time, if it's more than 90 minutes use the random login and password to call authenticate
  6. Delete the login we created on sign out

@AndrewGable AndrewGable requested a review from tgolen August 8, 2020 18:54
@AndrewGable AndrewGable self-assigned this Aug 8, 2020
Comment on lines 109 to 111
.catch((err) => {
Store.set(STOREKEYS.SESSION, {error: err.message});
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.catch((err) => {
Store.set(STOREKEYS.SESSION, {error: err.message});
});
.catch(err => Store.set(STOREKEYS.SESSION, {error: err.message}));

Make sure your linter is working, because this should have thrown a listing error. Also, it's maybe better to use merge() here so it doesn't blow away the rest of the stuff on that key. I can do that in a followup PR too since this branch doesn't have merge yet.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yeah, the session is going to be tricky not to blow away

@tgolen tgolen merged commit fd60e71 into master Aug 8, 2020
@tgolen tgolen deleted the andrew-session branch August 8, 2020 20:17
AndrewGable pushed a commit that referenced this pull request Mar 4, 2021
Julesssss pushed a commit that referenced this pull request Apr 7, 2021
@OSBotify
Copy link
Contributor

🚀 [Deployed](https://github.com/Expensify/Expensify.cash
/actions/runs/765130740) 🚀 to
staging on Mon Apr 19 2021 at 22:41:56 GMT+0000 (Coordinated Universal Time)

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Oct 24, 2023

Deploying helpdot with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7cd00c9
Status: ✅  Deploy successful!
Preview URL: https://759d03c3.helpdot.pages.dev

View logs

MrMuzyk added a commit to MrMuzyk/App that referenced this pull request Jan 24, 2024
* feat: Added missing validation and QOL change on UBO confirm step

* fix: add missing prop
francoisl pushed a commit that referenced this pull request Feb 13, 2024
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Aug 21, 2024

Deploying new-help with  Cloudflare Pages  Cloudflare Pages

Latest commit: 06f5b66
Status:🚫  Build failed.

View logs

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Sep 27, 2024

Deploying newhelp with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3634670
Status:🚫  Build failed.

View logs

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

Successfully merging this pull request may close these issues.

4 participants