Closed GuleriaAshish closed 3 years ago
Hi @GuleriaAshish
Please check that you have called your ConnectycubeAuthServices.init()
before ConnectycubeAuthServices.login(user)
. Means you should do ConnectyCube.init(credentials)
to initialize ConnectyCube's construtors (e.g. this.auth
).
Thanks for the quick reply @ccvlad .Yes i have added this. See above code of AuthServices class under declaration.
In the code above I see that you announced class AuthService
that exists methods init
, login
, logout
. But next you are just calling ConnectycubeAuthServices.login(user)
. That all that I am able to see in your previous message
Okay i got your point, let me check it.
@ccvlad , previous error is gone now but a new one arises. "undefined is not an object (evaluating key.sigbytes)", have any idea about it ?
@GuleriaAshish please show how you use 'init' method and what values you pass there
@DaveLomber, I figured it out yesterday. Actually i was send an array rather than objects in init() method.
I need to ask you that what basic steps should i follow to implement video calling functionality in my existing app. Steps that i follow till now: 1) I have a react native app. 2) I have added it to the connectycube portal and generated APP Id . authSecret and authKey 3) call init method with above generated params 4) Now i need to create a session for video calling and i want to use my apps login credentials.
Now i am stuck at point 4 as createSession returns "unauthorised" error.
Please suggest!!
The React Native Video Calling doc - https://developers.connectycube.com/reactnative/videocalling The React Native Video Calling sample (demo) - https://github.com/ConnectyCube/connectycube-reactnative-samples/tree/master/RNVideoChat
I close the issue, cause the error "Undefined is not an object(evaluating this.auth.createSession)" was resolved. Please create a new issue for other question/problem.
I am using connectycube library for implementing video call functionality in my app. While creating a session i am getting this error "Undefined is not an object(evaluating this.auth.createSession)".
Code details:=> ReactNative: 0.63.2 Connectycube: 3.7.2
Code:=> 1) Methods decleration: import ConnectyCube from 'react-native-connectycube'; import {credentials} from "../config";
export default class AuthService{
}
2) Usage: let user = { id: socialResponse.data.user_data.id, password: socialResponse.data.user_data.email }
Please suggest me where i am doing wrong.