Title: 401 ошибка после реконекта
Desription: Отображается экран с пустыми полями и 401 ошибкой, после входе и выхода из комнаты
Шаги воспроизведения:
1. Подключится через VPN к любой стране (срабатывает на Украинском мобильном интернете)
2. Войти в комнату, и выйти из нее
3. Войти в комнату и выйти повторно
Есть игра на андроид, сделанная в юнити. Есть веб-платформа, где пользователи могут зарегистрироваться, создать кабинет, в котором можно пополнять баланс. Игра, при запуске, просит пользователя залогинится, используя логин/пароль для веб-платформы. Есть скрипт, уже имплементированный в игру, который отвечает за коммуникацию между игрой и платформой, а именно - логин игрока и получение нового баланса игрока по результатам игры.
Но возникла проблема, которую мы не предусмотрели и нужно исправить - при изменении региона пользователя (например, через VPN) возникает ошибка авторизации в приложении. Это происходит из-за того, что токен авторизации, выданный на основе текущего региона (сети), становится недействительным при смене региона. В результате сервер отклоняет запросы с ошибкой HTTP 401 Unauthorized, и приложение не может повторно авторизовать пользователя без перезапуска. Проблема заключается в том, что приложение не умеет автоматически повторно авторизовываться в случае, если токен устарел или стал недействительным. Чтобы решить это, нужно добавить механизм, который будет автоматически получать новый токен, когда текущий больше не подходит.
I have more than 15 years of experience in the development
As I am an expert, I can build it according to your requirements.
Because I have a lot of experience in these fields, I can build your project as soon as possible.
I offer excellent software quality work and provide the best support for your project.
If you give me this job, I will do my best to finish your job by your timeline.
If you want to see my past works, I can show you my past works right now.
Ready to discuss this with you about the task now.
Thank you for the reading.
Hello Vladyslav V.,
I understand that you are looking for a solution to fix the 401 error that occurs after reconnect on an Android game developed in Unity. The issue arises when the user changes regions (e.g., through a VPN), causing the authentication token to become invalid and resulting in HTTP 401 Unauthorized errors. The current implementation lacks the ability to automatically reauthenticate the user when the token expires or becomes invalid.
As an experienced C# programmer with expertise in Unity development, I propose to implement a mechanism that automatically retrieves a new token when the current one is no longer valid. This solution will ensure seamless user authentication even after region changes without the need for manual intervention.
I would be happy to discuss your project in more detail. Please initiate a chat to further explore how we can address this issue effectively.
Best regards,
Waqar H.
Hello Dear!
Good Day!
Hope you are doing fine.
This is Toriqul Islam . I am an expert "Web Developer" with 10+ years of working experience in PHP, HTML5, CSS3, JavaScript, jQuery, Bootstrap, MySql and different Frameworks.
Hire me and you don't have to worry about your website problems again! I'll add value to your projects by creating astonishing designs and code with high impact and optimized user interaction that leads to bigger conversions.
WHAT PROBLEMS CAN I HELP YOU SOLVE?
• Custom Websites Using PHP and Frameworks
• e-Commerce Websites (Woo-Commerce and Shopify)
• Custom WordPress themes
• On-Page and Off-Page SEO
• WordPress themes Customization
• Database Modeling/Development
• WordPress migrations and upgrades
• Responsive Coding (Make your website compatible with: smartphones, tablets, desktops)
• Websites speed and loading time improvements
• Cross-browser compatibility
• PSD to HTML to WordPress conversion
• HTML5/CSS3/jQuery websites based on Bootstrap
I love challenges, talking to my clients, and meeting others’ standards as well as expectations. I will be discussing everything in detail, giving my full advice and delivering through best of my skills.
You are cordially welcome to discuss your project. Thank You!
Best Regards,
Toriqul Islam
Hello Dear!
Good Day!
Hope you are doing fine.
This is Ruhul Ajom Sagor. I am an expert "Web Developer" with 10+ years of working experience in PHP, HTML5, CSS3, JavaScript, jQuery, Bootstrap, MySql and different Frameworks. I have completed my B.S.C Engineering in Computer Science and Engineering (CSE) from BUET.
Hire me and you don't have to worry about your website problems again! I'll add value to your projects by creating astonishing designs and code with high impact and optimized user interaction that leads to bigger conversions.
WHAT PROBLEMS CAN I HELP YOU SOLVE?
Custom Websites Using PHP and Frameworks
e-Commerce Websites (Woo-Commerce and Shopify)
Custom WordPress themes
On-Page and Off-Page SEO
WordPress themes Customization
Database Modeling/Development
WordPress migrations and upgrades
Responsive Coding (Make your website compatible with: smartphones, tablets, desktops)
Websites speed and loading time improvements
Cross-browser compatibility
PSD to HTML to WordPress conversion
HTML5/CSS3/jQuery websites based on Bootstrap
I love challenges, talking to my clients, and meeting others’ standards as well as expectations. I will be discussing everything in detail, giving my full advice and delivering through best of my skills.
You are cordially welcome to discuss your project. Thank You!
Best Regards,
Ruhul Ajom
Hi Vladyslav V.,
Good evening!
I am skilled mobile software engineer with skills including C# Programming, Unity and Web Services.
Please send a message to discuss more about this project.
Eager to hear your feedback
Hello Vladyslav V.,
After carefully reviewing your project description, I am confident that I can help you to complete this project to your full satisfaction.
As an experienced developer, I can complete your project with my relevant skills and experience in C# Programming, Web Services, Unity.
Lets connect in chat so that We discuss further.
Regards