"github.com/passageidentity/passage-go"
func exampleHandler(w http.ResponseWriter, r *http.Request) {
psg, _ := passage.New("<PASSAGE_APP_ID>", &passage.Config{
APIKey: "<PASSAGE_API_KEY>",
// Get the Passage User ID from database
// The passageUserID returned above can be used deactivate a user
userUpdateAttributes := UpdateBody{
UserMetadata: map[string]interface{}{
passageUser, err := psg.updateUser(passageUserID, userUpdateAttributes)
// π failed to update the user
w.WriteHeader(http.StatusInternalServerError)