Any — The parameters object used to create the AuthSession.
Raises
Error— Raised if the project doesn’t use AuthSessions.Error— Raised if the AuthSession is Recorder-based (not Credentials-based).Error— Raised if the AuthSession is Runtime-based.
Example: branching on a login flow
When a single site exposes more than one login flow (for example, separate provider and patient logins on the same portal), include a discriminator parameter when the AuthSession is created and read it back insidecheck to validate the correct post-login state.
auth-sessions/create.py
auth-sessions/check.py
parameters.loginType: "provider", both create and check follow the provider flow; passing "patient" switches both to the patient flow.
Related
- AuthSessions — Learn about authentication session management.
- Multiple login flows on the same site — Usage pattern this example supports.