Authorization
Overview
Using the Oauth method allows you to modify the browser URL and jump to the authorization page in the SHOPLINE admin.
For example, when merchants install embedded apps, you can use this method to redirect them to the authorization page.
Related APIs
Name | Description | Return value |
---|---|---|
invoke | Jump to authorization page | void |
Parameter description:
Name | Description | Type |
---|---|---|
scope | Permission point | string, multiple permission points are separated by a comma “,” |
appKey | App's appkey | string |
redirectUri | App's callback address | string |
Code example
import { Oauth } from '@shoplinedev/appbridge'
Oauth.create(app).invoke({
scope,
appKey,
redirectUri
})
Was this article helpful to you?
Error loading component.