-
Notifications
You must be signed in to change notification settings - Fork 5
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
Error: Missing access token #18
Comments
Usage: import MatrixSdk from 'react-native-matrix-sdk'; MatrixSdk.configure('https://your-matrix-homeserver.org'); try { // Session will return MXSessionAttributes // Create room, invite person & send message |
Whats the error you get? |
I got an error : Missing access token when call function MatrixSdk.startSession() |
This is on iOS or android? |
You might want to try to set the credentials explicitly after the login: MatrixSDK.setCredentials(
credentials.access_token,
credentials.device_id,
credentials.user_id,
credentials.home_server,
credentials.refresh_token
);
await MatrixSDK.startSession() |
On Sat, 4 Dec 2021 at 00:00 Hanno J. Gödecke ***@***.***> wrote:
This is on iOS or android?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#18 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKD5VIETFRHVG5SJI32GE6TUPDZSNANCNFSM5JKDRY5A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
I just implemented in ios environment
|
i tried and it shows error "[ReferenceError: Can't find variable: MatrixSDK]" |
it doesn't seem to understand the function MatrixSDK.setCredentials? |
Oh no, it seems like you are on an old version. Which version are you using? Make sure you install |
I'm using "react-native-matrix-sdk": "^1.0.0-alpha74" |
I have a look at the package https://github.com/matrix-org/matrix-js-sdk, can it be used with the application? |
yeah, i def recommend using this package. You need to install some more stuff to get it working correctly. Have a look at |
Thanks bro, I will try this package |
Do you mean i have to install the necessary packages in this link https://aelequin.gitbook.io/rnm/getting-started/installation/core-required |
After successful login, the function got an error MatrixSdk.startSession()
The text was updated successfully, but these errors were encountered: