# 第三方帳號綁定

可以將 Prime 存儲在後端伺服器，換取 token 的流程改由後端直接對後端登入，省去每一次要再前端登入 Qubic 服務的流程

{% hint style="danger" %}
請注意，Prime Token 是非常敏感且重要的資訊，若 Prime Token 被洩漏，就可能讓攻擊者取得部分錢包權限。

請將 Prime Token 妥善保管於後端伺服器的資料庫或安全儲存空間中，切勿將 Prime Token 傳至前端或置於非開發者可存取的空間。
{% endhint %}

<figure><img src="https://2097780654-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmSOr6YIdkV27v1xXHSUV%2Fuploads%2FPSNtOcTJ7Bdjteg6DbQQ%2Fimage.png?alt=media&#x26;token=8fdf95ee-23a6-4bb5-8fc1-3667a47ab7ed" alt=""><figcaption></figcaption></figure>

## Example

```typescript
// bind with redirect
qubicConnect.bindWithRedirect();

// when success redirect from url
qubicConnect.onBindTicketResult((bindTicketResult, error) => {
  console.log('example onBindTicketResult');
  if (error) {
    console.log(error?.message);
  }
  console.log({ bindTicketResult });
});
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://qubic.gitbook.io/docs/guides/qubic-connect-sdk/third-party-binding.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
