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

keycloak.js typo fixed #517

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion keycloak.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ declare namespace KeycloakConnect {
// access granted
});
*
* @param {string[]} permissions A single string representing a permission or an arrat of strings representing the permissions. For instance, 'item:read' or ['item:read', 'item:write'].
* @param {string[]} permissions A single string representing a permission or an array of strings representing the permissions. For instance, 'item:read' or ['item:read', 'item:write'].
*/
enforcer(permissions: string[]|string, config?: EnforcerOptions): express.RequestHandler

Expand Down
2 changes: 1 addition & 1 deletion keycloak.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ Keycloak.prototype.protect = function (spec) {
// access granted
});
*
* @param {String[]} expectedPermissions A single string representing a permission or an arrat of strings representing the permissions. For instance, 'item:read' or ['item:read', 'item:write'].
* @param {String[]} expectedPermissions A single string representing a permission or an array of strings representing the permissions. For instance, 'item:read' or ['item:read', 'item:write'].
*/
Keycloak.prototype.enforcer = function (permissions, config) {
return new Enforcer(this, config).enforce(permissions)
Expand Down