Skip to content
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

Slombard/cha 510 install and test the telegram appssdk sdk #79

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

552020
Copy link
Contributor

@552020 552020 commented Jul 10, 2024

  • Install new SDK
  • Read and understand the documentation regarding the Launch Params.
  • Read and print window.location.hash in which some variable regarding the environemnt in which the TMA is launched are made available to the TMA itself through the query string of the URL of the Mini App. The weird thing is that the official documentation doesn't talk at all about window.location.hash.
  • Authorise User
  • Send initData from the frontend to the backend: implement a function sendInitData, to an /authorize endpoint in the backend. We could consider to implement it directly in the /get-user endpoint.
  • Write an /authorization endpoint in the backend, that takes the Authorization header with the initData and validate that. Write a validation function, which seems to be present for Node.js and Go but not for Python. Is this possible?

Copy link

vercel bot commented Jul 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
new-vite-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 10, 2024 2:08pm

@552020 552020 marked this pull request as draft July 10, 2024 11:10
@lmangall
Copy link
Contributor

  • What do you use as ressources ?
  • Your motivation is solving the authentication ?

I couldn't launch it, after reinstalling the dependencies I got a white screen with this console.log:

Uncaught Error: Unable to retrieve launch parameters from any known source. Perhaps, you have opened your app outside of Telegram?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants