Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我从 sn-client-js 初始化存储库时遇到问题。我正在使用自定义 OAuth 提供程序,并且成功接收到具有访问权限和刷新令牌的对象。
现在我想初始化一个存储库并使用它来列出和修改用户内容,但我不知道如何为存储库对象提供令牌。
登录状态属于存储库实例,因此存储库应用作单例。
你会得到一个合适的用户和会话。
我认为您应该使用作用域 @sensenet 包而不是 sn-client-js。