Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@syncot/auth

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@syncot/auth - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

8

lib/auth.d.ts
import { Presence } from '@syncot/presence';
import { EmitterInterface, Id, SyncOtEmitter } from '@syncot/util';
import { EmitterInterface, SyncOtEmitter } from '@syncot/util';
/**

@@ -27,3 +27,3 @@ * Events emitted by `AuthService` and `AuthClient`.

*/
getUserId(): Id | undefined;
getUserId(): string | undefined;
/**

@@ -53,3 +53,3 @@ * Returns true, if the user ID is present, otherwise returns false.

*/
mayReadDocument(typeName: string, id: Id): Promise<boolean>;
mayReadDocument(typeName: string, id: string): Promise<boolean>;
/**

@@ -59,3 +59,3 @@ * Resolves to true, if the user may write to the specified document,

*/
mayWriteDocument(typeName: string, id: Id): Promise<boolean>;
mayWriteDocument(typeName: string, id: string): Promise<boolean>;
/**

@@ -62,0 +62,0 @@ * Resolves to true, if the user may read/load the specified presence object,

{
"name": "@syncot/auth",
"version": "0.0.3",
"version": "0.0.4",
"description": "Interfaces and type definitions related to authentication and authorization.",

@@ -29,7 +29,7 @@ "keywords": [

"dependencies": {
"@syncot/presence": "^0.0.3",
"@syncot/util": "^0.0.1",
"@syncot/presence": "^0.0.4",
"@syncot/util": "^0.0.2",
"tslib": "^1.9.3"
},
"gitHead": "bd4d64ce07f354f6123f71b6f6ba0796bc5b198b"
"gitHead": "b952421ee19e038a054420c80e3b870f52e23ed9"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc