Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Question how can I import a jwt library?

Discussion in 'Cloud Code' started by DaegeunPark, Apr 17, 2024.

  1. DaegeunPark

    DaegeunPark

    Joined:
    Jul 28, 2016
    Posts:
    8
    I need to create a client_sceret(jwt) to implement the IOS withdrawal feature.
    Is there a way to import JWT libraries into cloud code script?
     
    Last edited: Apr 17, 2024
  2. MariusUrbelis

    MariusUrbelis

    Unity Technologies

    Joined:
    Mar 15, 2015
    Posts:
    47
    Not directly in the dashboard, however, it is possible using JS Bundling.

    You could choose to use Cloud Code C# modules where you would have access to the whole NuGet package library which would include ones that handle JWTs for you.
     
    Last edited: Apr 17, 2024
    GabKBelmonte likes this.
  3. DaegeunPark

    DaegeunPark

    Joined:
    Jul 28, 2016
    Posts:
    8
    thank you for your kind response!
     
    GabKBelmonte likes this.
  4. don1989

    don1989

    Joined:
    Jan 16, 2016
    Posts:
    1
    Are there any plans to support this in the future? If a simple module like jsonwebtoken were available in the dashboard, it would allow us to access many other APIs that require authentication without the need of JS Bundling. (I'd love to stick with the dashboard if possible)
     
    Last edited: Apr 18, 2024
    DaegeunPark likes this.
  5. MariusUrbelis

    MariusUrbelis

    Unity Technologies

    Joined:
    Mar 15, 2015
    Posts:
    47
    At present, unfortunately not. However, thanks for your feedback I will relay it to the product manager. Currently, we recommend using Cloud Code C#.