Skip to content

Commit

Permalink
Fix creating a grant/custom auth (#299)
Browse files Browse the repository at this point in the history
This PR fixes creating a grant by pointing it to the custom auth endpoint.
  • Loading branch information
mrashed-dev committed Oct 27, 2023
1 parent ef60314 commit 89c312c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nylas/resources/grants.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def find(self, grant_id: str) -> Response[Grant]:

def create(self, request_body: CreateGrantRequest) -> Response[Grant]:
"""
Create a Grant.
Create a Grant via Custom Authentication.
Args:
request_body: The values to create the Grant with.
Expand All @@ -63,7 +63,7 @@ def create(self, request_body: CreateGrantRequest) -> Response[Grant]:
"""

return super(Grants, self).create(
path=f"/v3/grants", response_type=Grant, request_body=request_body
path=f"/v3/connect/custom", response_type=Grant, request_body=request_body
)

def update(
Expand Down

0 comments on commit 89c312c

Please sign in to comment.