The auth
submodule allows you to work with Wix authentication and permissions.
This submodule is not intended for use with self-hosted Apps.
1
elevate()
Receives an SDK function and returns an instance of the same function that runs with the authentication and permissions of the current app.
Use elevate()
in frontend environments such as site or dashboard extensions when you need to make a call with Wix app authentication.
Learn more about elevated permissions.
1
Name | Type | Description |
---|---|---|
sourceFunction | function | SDK function to elevate. |
An SDK function that runs with app-level permissions.
Create a new product with elevated permissions:
1