chore(js-sdk): update TSDocs of auth callback (#11005)
* chore(js-sdk): update TSDocs of auth callback * generate doc
This commit is contained in:
@@ -113,7 +113,8 @@ export class Auth {
|
|||||||
*
|
*
|
||||||
* @param actor - The actor type. For example, `user` for admin user, or `customer` for customer.
|
* @param actor - The actor type. For example, `user` for admin user, or `customer` for customer.
|
||||||
* @param method - The authentication provider to use. For example, `google`.
|
* @param method - The authentication provider to use. For example, `google`.
|
||||||
* @param query - The query parameters from the Oauth callback, which should be passed to the API route.
|
* @param query - The query parameters from the Oauth callback, which should be passed to the API route. This includes query parameters like
|
||||||
|
* `code` and `state`.
|
||||||
* @returns The authentication JWT token
|
* @returns The authentication JWT token
|
||||||
*
|
*
|
||||||
* @tags auth
|
* @tags auth
|
||||||
@@ -124,6 +125,7 @@ export class Auth {
|
|||||||
* "google",
|
* "google",
|
||||||
* {
|
* {
|
||||||
* code: "123",
|
* code: "123",
|
||||||
|
* state: "456"
|
||||||
* }
|
* }
|
||||||
* ).then((token) => {
|
* ).then((token) => {
|
||||||
* console.log(token)
|
* console.log(token)
|
||||||
|
|||||||
+2
-1
@@ -23,6 +23,7 @@ sdk.auth.callback(
|
|||||||
"google",
|
"google",
|
||||||
{
|
{
|
||||||
code: "123",
|
code: "123",
|
||||||
|
state: "456"
|
||||||
}
|
}
|
||||||
).then((token) => {
|
).then((token) => {
|
||||||
console.log(token)
|
console.log(token)
|
||||||
@@ -31,7 +32,7 @@ sdk.auth.callback(
|
|||||||
|
|
||||||
## Parameters
|
## Parameters
|
||||||
|
|
||||||
<TypeList types={[{"name":"actor","type":"`string`","description":"The actor type. For example, `user` for admin user, or `customer` for customer.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"method","type":"`string`","description":"The authentication provider to use. For example, `google`.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"query","type":"`Record<string, unknown>`","description":"The query parameters from the Oauth callback, which should be passed to the API route.","optional":true,"defaultValue":"","expandable":false,"children":[]}]} expandUrl="https://docs.medusajs.com/learn/fundamentals/data-models/manage-relationships#retrieve-records-of-relation" sectionTitle="callback"/>
|
<TypeList types={[{"name":"actor","type":"`string`","description":"The actor type. For example, `user` for admin user, or `customer` for customer.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"method","type":"`string`","description":"The authentication provider to use. For example, `google`.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"query","type":"`Record<string, unknown>`","description":"The query parameters from the Oauth callback, which should be passed to the API route. This includes query parameters like\n`code` and `state`.","optional":true,"defaultValue":"","expandable":false,"children":[]}]} expandUrl="https://docs.medusajs.com/learn/fundamentals/data-models/manage-relationships#retrieve-records-of-relation" sectionTitle="callback"/>
|
||||||
|
|
||||||
## Returns
|
## Returns
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user