@commercelayer/js-auth
Advanced tools
Comparing version 6.2.0 to 6.2.1
@@ -269,2 +269,5 @@ interface TBaseOptions { | ||
} | ||
/** | ||
* A JWT payload that represents a `user`. | ||
*/ | ||
type JWTUser = JWTBase & { | ||
@@ -280,2 +283,5 @@ /** The type of credentials you're using to authenticate to the APIs. */ | ||
}; | ||
/** | ||
* A JWT payload that represents a `dashboard`. | ||
*/ | ||
type JWTDashboard = JWTBase & { | ||
@@ -321,2 +327,5 @@ /** The type of credentials you're using to authenticate to the APIs. */ | ||
}; | ||
/** | ||
* A JWT payload that represents a `webapp`. | ||
*/ | ||
type JWTWebApp = SetRequired<JWTOrganizationBase, 'owner'> & { | ||
@@ -332,2 +341,5 @@ /** The type of credentials you're using to authenticate to the APIs. */ | ||
}; | ||
/** | ||
* A JWT payload that represents a `sales_channel`. | ||
*/ | ||
type JWTSalesChannel = JWTOrganizationBase & { | ||
@@ -339,2 +351,5 @@ /** The type of credentials you're using to authenticate to the APIs. */ | ||
}; | ||
/** | ||
* A JWT payload that represents an `integration`. | ||
*/ | ||
type JWTIntegration = JWTOrganizationBase & { | ||
@@ -341,0 +356,0 @@ /** The type of credentials you're using to authenticate to the APIs. */ |
{ | ||
"name": "@commercelayer/js-auth", | ||
"version": "6.2.0", | ||
"version": "6.2.1", | ||
"description": "A JavaScript library designed to simplify authentication when interacting with the Commerce Layer API.", | ||
@@ -41,7 +41,7 @@ "repository": { | ||
"@types/jsonwebtoken": "^9.0.6", | ||
"@types/node": "^20.12.7", | ||
"@types/node": "^20.12.10", | ||
"jsonwebtoken": "^9.0.2", | ||
"tsup": "^8.0.2", | ||
"typescript": "^5.4.5", | ||
"vitest": "^1.5.0" | ||
"vitest": "^1.6.0" | ||
}, | ||
@@ -57,4 +57,4 @@ "engines": { | ||
"build": "tsup", | ||
"jsr:publish": "pnpm dlx jsr publish" | ||
"jsr:publish": "npx jsr publish" | ||
} | ||
} |
@@ -57,3 +57,3 @@ # Commerce Layer JS Auth | ||
| Grant type | Sales channel | Integration | Webapp | | ||
| ---------------------- | ------------- | ----------- | ------ | | ||
| ---------------------- | :-----------: | :---------: | :----: | | ||
| **Client credentials** | ✅ | ✅ | | | ||
@@ -60,0 +60,0 @@ | **Password** | ✅ | | | |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
87853
450