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

Session handling #65

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Session handling #65

wants to merge 2 commits into from

Conversation

ethanresnick
Copy link
Owner

Finally add session handling, now that we know Twilio works with cookies well enough for us to use express-session.

1. Remove the concept of an end state and an “abstract renderable
state”. Before, all renderable states were either “abstract” or
realized as “end (renderable) states” or “async (renderable) states”.
This was just too complicated. Now, we can think exclusively in terms
of branching only states (hidden states), renderable only states (end
states and states that’ll be async hijacked), and normal states. Closes
#2.

2. Give a static definition of a valid state. I’m not sure how well
this’ll work (b/c idk if typescript can tell enough of the time that a
property is undefined on a state statically), but it’s worth a shot.
@codecov-io
Copy link

Codecov Report

Merging #65 into master will decrease coverage by 0.11%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #65      +/-   ##
==========================================
- Coverage   95.43%   95.31%   -0.12%     
==========================================
  Files           9        9              
  Lines         197      192       -5     
  Branches       52       50       -2     
==========================================
- Hits          188      183       -5     
  Misses          9        9
Impacted Files Coverage Δ
lib/state.ts 100% <100%> (ø) ⬆️
lib/util/routeCreationHelpers.ts 100% <100%> (ø) ⬆️
lib/index.ts 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 729e09d...613ee00. Read the comment docs.

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.

2 participants