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

SDK doesn't support custom invite URL as API parameter #6731

Closed
MajesteitBart opened this issue Jul 9, 2021 · 0 comments · Fixed by #6742
Closed

SDK doesn't support custom invite URL as API parameter #6731

MajesteitBart opened this issue Jul 9, 2021 · 0 comments · Fixed by #6742

Comments

@MajesteitBart
Copy link
Contributor

Describe the Bug

The handler only accepts email and role. Where the custom invite_url should also be available.

https://github.com/directus/directus/blob/main/packages/sdk/src/handlers/invites.ts

To Reproduce

Invites only work when using the email and role parameters.

Should be possible to use:
directus.users.invites.send({ email: values.email, role: this.state.role, invite_url: 'http://localhost:8000/invited/' })

Response is:
{"errors":[{"message":"\"email\" must be one of [string, array]","extensions":{"code":"INVALID_PAYLOAD"}}]}

What version of Directus are you using?

9.0.0.rc83

What version of Node.js are you using?

14.17.0

What database are you using?

Postgres 10.17

What browser are you using?

Edge Chromium

What operating system are you using?

Windows

How are you deploying Directus?

NPX on Azure

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant