inrupt / inrupt/solid-client-authn-js

Make Session implement ISessionInfo

Open
#590 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
77
Forks
49
Avg merge
18h 20m
Merged PRs (30d)
32

Description

As discussed in https://github.com/inrupt/solid-client-authn-js/issues/567, we currently have an inconvenient session.info field.

I propose to:

  • make Session implement ISessionInfo to avoid this detour
  • (optional) create an ISession interface, which is what Session implements
  • have handleIncomingRedirect return Session (ISession) rather than ISessionInfo
  • deprecate Session#info so we can remove it in a future version
  • change all ISessionInfoXxx classes and interfaces to return Session (ISession) instead of ISessionInfo
    • with the next semver.major release, rename those classes into ISessionXxx instead

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the Session and ISessionInfo definitions, handleIncomingRedirect, and the ISessionInfoXxx classes and interfaces named in the issue. Trace how Session and session.info are exposed before deciding the interface and deprecation changes. Done means the checklist is addressed consistently, including the semver-major renames where applicable.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
authentication
Issue type
Refactor
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.