logto-io / js

🤓 Logto JS SDKs.
https://docs.logto.io/quick-starts/
MIT License
61 stars 40 forks source link

feature request: angular example with more usecase, such as multiple resources? #656

Closed lonelyhentxi closed 5 months ago

lonelyhentxi commented 6 months ago

What problem did you meet?

It seems like the angular-example only supports one resource to be passed. And then I tried to call the login/logout methods like the example, while call getAccessTokenClaims from the bare LogToClient to get the scopes at the same time, but it failed to grant, maybe as they are using different storage and keys?

Describe what you'd like Logto to have

Could you please give more details about using logto (with multi-resources) and angular? Or provide a Angular SDK like VueJS directly?

gao-sun commented 6 months ago

Since the Angular sample isn't using Logto JS client, it'll be tricky to support multiple resources. We can add an Angular SDK shortly.

charIeszhao commented 5 months ago

We now support passing resources in a single string with comma as separator (https://github.com/logto-io/logto/pull/5773), so I think this may make it possible for you to do it in Angular. Let me know if this works

lonelyhentxi commented 5 months ago

We now support passing resources in a single string with comma as separator (logto-io/logto#5773), so I think this may make it possible for you to do it in Angular. Let me know if this works

Thanks, works fine now. I will close the issue. Still it would be better if there is a official angular SDK that support the ability to request both user info and API resource access tokens.

charIeszhao commented 5 months ago

Thanks for the update. The Angular SDK is on our roadmap. Please stay tuned to our future updates.