loopbackio / loopbackio/loopback-next

A sequence action for stateful requests (HTTP sessions)

Open
#1,863 17 comments 4 reactions 0 assignees View on GitHub
Extensions feature help wanted REST
Dominant language
TypeScript
Stars
5.1k
Forks
1.1k
Avg merge
2d 21h
Merged PRs (30d)
27

Description

## Feature proposal

Since middlewares are internally used and not exposed to developers, there is no possible way to implement stateful requests, as it was done with the `express-session` middleware before v4.

## Current Behavior

The v4 complying solution would be a sequence action, but it doesn't exist yet in `RestBindings.SequenceActions`.

## Expected Behavior

Have a sequence action that retrieves cookies information and make it available to the app via context and dependency injection

Contributor guide

Open the contributing guide

Research direction

Start by reading RestBindings.SequenceActions and the existing sequence-action implementations to understand how request data is exposed through context and dependency injection. Trace the current middleware and request-context handling, then define and test a sequence action that makes cookie information available to applications.

Written by the indexing model from the issue text.

Assessment

Tech stack
nodejs, typescript
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.