authgear / authgear/authgear-server

Consume Input in Authflow

Open
#4,383 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
2k
Forks
125
Avg merge
2d 17h
Merged PRs (30d)
32

Description

Currently when we feed input to a authflow, we feed the same input indefinitely until the authflow no longer react. It is a problem when two consecutive steps consume the same input, for example, two consecutive step of `identification: email` in a signup flow. The second step will consume the same input, causing a duplicated identity error.

Conceptually, processing an input should be like consuming tokens in a parser. The consumed token will not be passed to the next parser.

Contributor guide

Open the contributing guide

Research direction

No files or tests are named; start by locating the authflow input-processing entry point and its existing tests. Trace how one input is passed between consecutive steps, then verify that a consumed input is not delivered to the next step, including the repeated identification: email case.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
authentication, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.