Giter VIP home page Giter VIP logo

Comments (5)

evanBurg avatar evanBurg commented on July 22, 2024 2

Totally my bad, I assumed it was a GET request. I am able to receive a token now, thanks so much for the fast reply.

from trefle-api.

FelixEder avatar FelixEder commented on July 22, 2024 1

@lambda2 Hi! I've been getting 500 Internal Server Error when trying to get my client side token through curl. I tried your exact same curl command as in your previous reply, but it still I get a 500. If I change the token I get an error about using an invalid token and if I remove the origin-param I get a 400 instead (but the body still says "Internal Server Error" :P ).

I'm really confused to what the problem might be, my website is
https://goodseeds.web.app
but that doesn't work either.

from trefle-api.

lambda2 avatar lambda2 commented on July 22, 2024 1

Hey @FelixEder, fixed now. Thanks for the feedback and sorry for the inconvenience 🙏

from trefle-api.

lambda2 avatar lambda2 commented on July 22, 2024

Hey Evan, are you sure you performed a "POST" request ? For example, with curl:

curl -i -X POST "https://trefle.io/api/auth/claim?token=YOUR-TOKEN&origin=your-website.rocks"

HTTP/2 200
server: nginx/1.14.0 (Ubuntu)
date: Tue, 14 May 2019 12:07:52 GMT
content-type: application/json; charset=utf-8

{"token":"eyJhbGciOiJIUzI1NiIsItR5cCI6IkpXVCJ9.eyJpcCI6WzQ4LDQ2LDQ4LDQ2LDQ4LDQ2LDQ4XSwiaXNzdWVyX2lkIjoxLCJvcmlnaW4iOiJsYWdhLmNvIiwiYXVkIjoiSm9rZW4iLCJleHAiOjE1NTc4NDI3NjYsImlhdCI3MTU1NzgzNTU2NiwiaXNzIjoiSm9rZW4iLCJqdGkiOiIybWY4bWNjdjc2bWZwdmd2M2swMnR0bDEiLCJuYmYiOjE1NTc8MzU1NjZ9.TJYar9UhYm0TvMSIr_OPZdrXeOuQCiM7XYlmJ2S_9tM","expiration":1557842766}%

from trefle-api.

FelixEder avatar FelixEder commented on July 22, 2024

@lambda2 Awesome, thanks a lot! :D

from trefle-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.