Giter VIP home page Giter VIP logo

Comments (4)

mooreds avatar mooreds commented on July 23, 2024 1

Thanks @markschmid . Let's leave this open so next time we take a pass though the golang client we can review.

from go-client.

markschmid avatar markschmid commented on July 23, 2024

I've found that using the following, it seems to work:

client := fusionauth.NewClient(httpClient, baseURL, "") // using "" as API Key
client.setTenantId = "<tenant id>"
response, errs, err := client.ResendEmailVerification(email)

Is that how to use this method?
Also, it's returning EOF as err.

Any ideas / advice is appreciated.

from go-client.

mooreds avatar mooreds commented on July 23, 2024

@markschmid do you have multiple tenants in FusionAuth? If so, you'll need to set the tenant Id using the header, or use a tenant based API key. More on that here: https://fusionauth.io/docs/v1/tech/apis/authentication/#making-an-api-request-using-a-tenant-id

It does look like we don't have a client method for anonymous sending of the email verification, though it is possible using the rest client directly. I'll file an issue.

Also, it's returning EOF as err.

I'm no golang expert, but from the code here: https://github.com/FusionAuth/go-client/blob/master/pkg/fusionauth/Client.go#L2681 It looks like errs contains any FusionAuth errors, and err contains any restclient errors (like, for example, FusionAuth being unavailable).

Any ideas / advice is appreciated.

I'm not quite clear what you are looking for, but for general support with FusionAuth, we recommend posting to the forum: https://fusionauth.io/community/forum/

from go-client.

markschmid avatar markschmid commented on July 23, 2024

Thanks. Since the verification call succeeds, I’m just confused about the EOF err. All other client methods i’ve used so far are not returning an err when they succeed.

For now, I‘m just checking the err and consider EOF still successful.

from go-client.

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.