Home > Mobile >  Android to communicate with the server token expired?
Android to communicate with the server token expired?

Time:09-18

Online said the client and server communication to bring every request token, and after the server receives the token have expired, assuming that playing the game token expired suddenly forced exit to the login screen, did not cause the user experience very irritating,,,,,,, I don't know is how to deal with for this server,?

CodePudding user response:

Token expiration time can be set for a long time, isn't it, valid for many days, he can't have been in the game has been in the mobile front desk have been running (who was killed in a cutting head time be recycled after the game, mobile phone no electricity, don't want to play, the game anti-addiction time protection, a lot), the game every time they log in to regenerate the token, occasional, I think you don't need to worry about this,

CodePudding user response:

This is not only your problem, the background also have very big problem, if the token expired, the background should provide an interface used to exchange for a token, you receive a token outdated information, call interface to change the token again, after success, continue to use

CodePudding user response:

reference 1st floor Write_BUG small expert replies:
token expiration time can be set for a long time, isn't it, valid for many days, he can't have been in the game has been on the phone at the front desk has been running (who was killed in a cutting head time be recycled after the game, mobile phone no electricity, don't want to play that game anti-addiction time protection, a lot), the game every time they log in to regenerate the token, occasional, I think you don't need to worry about this,

You mean as long as the client login token will regenerate?

CodePudding user response:

refer to the second floor BDMH response:
this is not only your problem, the background also have very big problem, if the token expired, the background should provide an interface used to exchange for a token, you receive a token outdated information, call interface to change the token again, after success, continue to use the

According to you, the token expiration time is useless,,,

CodePudding user response:

reference tp the prosperities, 4/f response:
Quote: refer to the second floor BDMH response:
this is not only your problem, the background also have very big problem, if the token expired, the background should provide an interface used to exchange for a token, you receive a token outdated information, call interface to change the token again, after success, continue to use the

According to you, the token expiration time is useless,,,
expiration time should be handled on the server, you only need to according to the background back is late, whether for operation

CodePudding user response:

I understand your meaning, if overdue for line, what is the meaning of the usefulness of the expiration time, might as well not to expiration time, save for process?

CodePudding user response:

reference 5 floor BDMH reply:
Quote: reference tp the prosperities, 4/f response:
Quote: refer to the second floor BDMH response:
this is not only your problem, the background also have very big problem, if the token expired, the background should provide an interface used to exchange for a token, you receive a token outdated information, call interface to change the token again, after success, continue to use the

According to you, the token expiration time is useless,,,
expiration time should be handled on the server, you only need to according to the background back is late, whether to return for the operation of the

I understand your meaning, if overdue for line, what is the meaning of the usefulness of the expiration time, might as well not to expiration time, save for process?

CodePudding user response:

refer to 7th floor tp the prosperities of reply:
Quote: refer to the fifth floor BDMH reply:
Quote: reference tp the prosperities, 4/f response:
Quote: refer to the second floor BDMH response:
this is not only your problem, the background also have very big problem, if the token expired, the background should provide an interface used to exchange for a token, you receive a token outdated information, call interface to change the token again, after success, continue to use the

According to you, the token expiration time is useless,,,
expiration time should be handled on the server, you only need to according to the background back is late, whether to return for the operation of the

I understand your meaning, if overdue for line, what is the meaning of the usefulness of the expiration time, might as well not to expiration time, save for process?
is also for security reasons

CodePudding user response:

refer to the eighth floor BDMH response:
Quote: refer to 7th floor tp the prosperities of reply:
Quote: refer to the 5 floor BDMH response:
Quote: reference tp the prosperities, 4/f response:
Quote: refer to the second floor BDMH response:
this is not only your problem, the background also have very big problem, if the token expired, the background should provide an interface used to exchange for a token, you receive a token outdated information, call interface to change the token again, after success, continue to use the

According to you, the token expiration time is useless,,,
expiration time should be handled on the server, you only need to according to the background back is late, whether to return for the operation of the

I understand your meaning, if overdue for line, what is the meaning of the usefulness of the expiration time, might as well not to expiration time, save for process?
is for security reasons

What's safety,,,

CodePudding user response:

reference tp the prosperities, 9/f, reply:
Quote: refer to the eighth floor BDMH response:
Quote: refer to the 7 floor tp the prosperities of reply:
Quote: refer to the 5 floor BDMH response:
Quote: reference tp the prosperities, 4/f response:
Quote: refer to the second floor BDMH response:
this is not only your problem, the background also have very big problem, if the token expired, the background should provide an interface used to exchange for a token, you receive a token outdated information, call interface to change the token again, after success, continue to use the

According to you, the token expiration time is useless,,,
expiration time should be handled on the server, you only need to according to the background back is late, whether to return for the operation of the

I understand your meaning, if overdue for line, what is the meaning of the usefulness of the expiration time, might as well not to expiration time, save for process?
is for security reasons

What's safety,,,

We sometimes use mobile phone text message authentication code, for example, the verification code is token value, more than a certain amount of time you use the verification code will not be passed to obtain, this aspect of my impression when it comes to money in the use of many;

CodePudding user response:

reference tp the prosperities of reply: 3/f
Quote: refer to 1st floor Write_BUG small expert replies:
token expiration time can be set for a long time, isn't it, valid for many days, he can't have been in the game has been on the phone at the front desk has been running (who was killed in a cutting head time be recycled after the game, mobile phone no electricity, don't want to play that game anti-addiction time protection, a lot), the game every time they log in to regenerate the token, occasional, I think you don't need to worry about this,

You mean as long as the client login token will regenerate?

Yes, or multiterminal login the problem how to make; Every time login token is different, so that new server have played the old token direct token, automatically expire to log back in with the new token, avoid multiple mobile devices at the same time
  • Related