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

Enable the creation of Session that is already logged in #2013

Open
jeswr opened this issue Mar 8, 2022 · 0 comments
Open

Enable the creation of Session that is already logged in #2013

jeswr opened this issue Mar 8, 2022 · 0 comments

Comments

@jeswr
Copy link
Contributor

jeswr commented Mar 8, 2022

Search terms you've used

isLoggedIn

Feature suggestion

I would like to be able to create a Session with constructor arguements that contain my accessToken, rsaKeyPair and publicKeyJwk that have been generated elsewhere; and for this to create a Session object that is in a logged in state.

Use Cases

A team that I am working with is building SOLID applications in flutter/dart - and has built an authentication library there to log in and create these credentials. However we still want to make use of things like Comunica and LDflex within the JS ecosystem - so we want to pass the credentials generated in the dart application into the JS code and generate an already logged in session object which can then be used by https://github.com/comunica/comunica-feature-solid.

Currently I am just passing a custom session object which uses a few functions from the internals of this library to create an authenticated fetch function.

@jeswr jeswr changed the title Enable the creation of Session that is logged in Enable the creation of Session that is already logged in Mar 8, 2022
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

No branches or pull requests

1 participant