Commit d92327de by panjiangyi

刷新token逻辑

parent f79818b1
Showing with 4 additions and 0 deletions
...@@ -52,6 +52,10 @@ class Chat { ...@@ -52,6 +52,10 @@ class Chat {
return this.webHost; return this.webHost;
} }
public setToken(token: TokenStringGetter) {
return xim.setToken(token);
}
private trimToken(token: string) { private trimToken(token: string) {
return token.replace(/^Bearer\s/, ""); return token.replace(/^Bearer\s/, "");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment