H hanyelmehy Well-Known Member Licensed User Longtime User Mar 21, 2020 #1 Auth_TokenAvailable fire twice when call auth.GetUserTokenId(User, False) ,any idea ??
Erel B4X founder Staff member Licensed User Longtime User Mar 22, 2020 #2 I wasn't able to reproduce it. Make sure that you are not calling GetUserTokenId multiple times. Anyway it shouldn't be difficult to ignore the second event raised. You can store the last event time in a global long variable and test it when the event is raised. Upvote 0
I wasn't able to reproduce it. Make sure that you are not calling GetUserTokenId multiple times. Anyway it shouldn't be difficult to ignore the second event raised. You can store the last event time in a global long variable and test it when the event is raised.
H hanyelmehy Well-Known Member Licensed User Longtime User Mar 22, 2020 #3 Erel said: I wasn't able to reproduce it. Make sure that you are not calling GetUserTokenId multiple times. Anyway it shouldn't be difficult to ignore the second event raised. You can store the last event time in a global long variable and test it when the event is raised. Click to expand... I call GetUserTokenId just one time , anyway I already uses second solution Thank you Upvote 0
Erel said: I wasn't able to reproduce it. Make sure that you are not calling GetUserTokenId multiple times. Anyway it shouldn't be difficult to ignore the second event raised. You can store the last event time in a global long variable and test it when the event is raised. Click to expand... I call GetUserTokenId just one time , anyway I already uses second solution Thank you