-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow Tokens To Be Passed #11
Comments
@Meherdeep any way to allow this? Or am I doing something wrong? |
@rlee1990 How are you generating your token? |
This is my token code:
|
What error are you getting when you pass this token value to the tempToken parameter? |
Here is the error: |
If I use this temp token that I generated from the site it works: |
@rlee1990 Are you generating this using String uid? |
Yes I am @Meherdeep could that be the issue? |
Yes, because the join channel function is using int uid for now. You can fork the repo and change the code accordingly. |
Thanks will do. |
@Meherdeep My fork worked I only added an option for the string uid and still keep everything else if you want to use that when your looking to add it in. |
what should be the url in the tokenUrl: ""? I'm using node to generate token, to generate token the URL goes something like this: site.com/generate_token?channel=test&uid=120&role=subscriber |
@holy-dev The token URL takes the base url of your token server, but it expects endpoint to match that found in the example token server here: |
@maxxfrazer thanks, I solved it. The url format is hardcoded in the plugin. |
It would be useful to allow us to also just provide a token and not just a temp token or a token url as we are creating our tokens using accounts for string uids and so I get the token before calling the uikit functions but I can't pass it to uikit I receive an error for temptoken.
The text was updated successfully, but these errors were encountered: