mirror of
https://github.com/supabase/supabase.git
synced 2026-12-06 08:29:01 +00:00
This PR moves several components which rely on `next` out of the `ui` package to the `ui-patterns` package. `ui-patterns` package is intented to be imported with specific imports so it's ok if there are components reliant on `next` in there. The `SonnerToaster` component has removed its dependency by requiring a prop for `theme`.
24 lines
601 B
TypeScript
24 lines
601 B
TypeScript
import { Mermaid } from 'ui-patterns/Mermaid'
|
|
|
|
export default function MermaidOAuthFlow() {
|
|
return (
|
|
<Mermaid
|
|
chart={`
|
|
flowchart TD
|
|
A["Third-party App"]
|
|
B["Your Authorization Endpoint"]
|
|
C["Supabase Auth Server"]
|
|
D["Third-party App"]
|
|
E["Supabase Auth Server"]
|
|
F["Third-party App can now access resources"]
|
|
|
|
A -- "(1) Authorization request" --> B
|
|
B -- "(2) User authenticates & approves" --> C
|
|
C -- "(3) Authorization code issued" --> D
|
|
D -- "(4) Exchange code for access token" --> E
|
|
E -- "(5) Access token + refresh token" --> F
|
|
`}
|
|
/>
|
|
)
|
|
}
|