Comments (5)
@muuvmuuv I am referring to the OAuth flow for public integrations which involves sending a POST
request to https://api.notion.com/v1/oauth/token
from notion-sdk-js.
/v1/oauth/token
has now been incorporated into the SDK as of v2.2.11 🎉
from notion-sdk-js.
Do you mean how you authorize? Head over to https://www.notion.so/my-integrations and create a new integration and paste the token into the client.
from notion-sdk-js.
For future searchers, although lacking OAuth functions from this library is apparently a miss, implementing it, for example with Express, can be fairly straight forward since it's not OAuth2. You redirect your user to the /oauth/authorize
endpoint, having them allow access, and Notion redirects user's browser back to your redirect_uri
so you can use the code
to call /oauth/token
for the access token
which represents the user. And this wraps up the whole process. Currently Notion API doesn't require you to encrypt or decrypt anything which is way easier than many other OAuth providers.
This is not the most accurate description of the OAuth process but you get the gist. Also you can follow this article if you just want some working code https://naomiperez.netlify.app/notion-oauth-flow/
from notion-sdk-js.
Hi @mogita
Could you please share the that repo?
I'm currently working on a project which require notion public integration.
I've done with internal integration by specify certain pages but get stuck with public integration(OAuth 2).
I'm looking forward to your reply.
from notion-sdk-js.
Related Issues (20)
- In version 2.2.13: QueryDatabaseResponse response types include PartialDatabaseObjectResponse | DatabaseObjectResponse HOT 1
- Map over database results union type HOT 3
- `users.me` types refuse `auth` parameter
- DatabaseObjectResponse ts missing title
- Replace node-fetch with isomorphic-fetch HOT 3
- The attribute `name` in database properties is not respected
- I am experiencing difficulties logging into Notion on the Windows platform. This issue seems to be affecting the login process, preventing me from accessing my Notion workspace HOT 1
- DatabasePropertyConfigResponse is a local type HOT 2
- Reading a "Person" property from a database entry returns only the first result
- Notion Formula Has a Bug Regarding Time Formatting HOT 3
- npm install ERR! for 'parse-text-from-any-block-type' examples
- How do I get value from blocks.retrieve
- The `punycode` module is deprecated HOT 3
- Missing `request_id` type in `OauthTokenResponse`
- unable to add external to files HOT 1
- multi_select type bug HOT 1
- Error: Insufficient permissions for this endpoint.
- I found the Mar 22, 2024 bug. I caused the problem HOT 5
- NotionS
- Inconsistent type: Cursor for parameters is string|undefined but for responses is string|null HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from notion-sdk-js.