Skip to content

Commit

Permalink
feat: 🎸 update talkee host
Browse files Browse the repository at this point in the history
  • Loading branch information
divisey committed Feb 9, 2023
1 parent cfed7e8 commit 2b95f82
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/late-boats-film.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@foxone/talkee": patch
---

update talkee host
7 changes: 2 additions & 5 deletions packages/talkee/src/components/Talkee.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,13 @@ async function handleLoggin() {
clientId: globals.clientId.value,
authMethods: props.authMethods as any[],
scope: "PROFILE:READ PHONE:READ",
getTokenByCode: async (code) =>
(
await auth({ method: AuthMethod.MixinOAuth, mixin_oauth_code: code })
).access_token,
origin: "Talkee",
pkce: true,
});
let token = data.token;
if (data.channel === "fennec") {
if (data.channel === "fennec" || data.channel === "mixin") {
token = (
await auth({ method: AuthMethod.MixinToken, mixin_token: token })
).access_token;
Expand Down
2 changes: 1 addition & 1 deletion packages/talkee/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function show(
showLink: options.showLink,
siteId: options.siteId || "",
slug: options.slug || "",
apiBase: options.apiBase || "https://talkee-api.mixin.fan/api",
apiBase: options.apiBase || "https://talkee-api.pando.im/api",
clientId: options.clientId || "61504be8-a9da-477d-9e18-448ac3780919",
authMethods: options.auth?.authMethods,
};
Expand Down

0 comments on commit 2b95f82

Please sign in to comment.