You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/passport/_prompts/tutorial-generation-setup.txt
+10-3Lines changed: 10 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -30,13 +30,17 @@ Overview of different configuration patterns demonstrated
30
30
31
31
Link to GitHub repository using the required format
32
32
<div class="display-none">
33
+
33
34
# Passport Setup with NextJS
35
+
34
36
</div>
35
37
36
38
[App description]
37
39
38
40
<div class="button-component">
41
+
39
42
[View app on Github](<link>) <span class="button-component-arrow">→</span>
43
+
40
44
</div>
41
45
42
46
### Configuration Patterns Overview
@@ -46,9 +50,12 @@ Link to GitHub repository using the required format
46
50
### Implementation Details
47
51
For each configuration pattern:
48
52
- Configuration Name: Brief description of what this configuration achieves
49
-
- Source Code: Link to relevant source code file
50
-
- Configuration Details: Code snippet showing the configuration
51
-
- Behavior Explanation: Clear explanation of how this configuration affects Passport behavior
53
+
- Brief description of what the configuration does.
54
+
- Code snippets showing how the instance is configured (CodeBlock should be linked to the relevant github repo) IMPORTANT: related snippets should be under a single code block rather than dividing them across multiple codeblocks. However, pls ensure that you only include the relevant snippets (method calls, etc) and not Next.js specific features(states, etc WHEN it's irrelevant) to ensure that the focus is to the most most important code snippet relevant to the feature.
55
+
- Example structure: ```typescript title="<configuration name>" manualLink="<github repo link containing the code snippet(don't specify the line, just the file's link)>"
56
+
<code snippet>
57
+
```
58
+
- Clear explanation of how the code works
52
59
- Use Cases: When to use this configuration pattern
Copy file name to clipboardExpand all lines: examples/passport/setup-with-nextjs/tutorial.md
+18-35Lines changed: 18 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,15 @@
1
1
<divclass="display-none">
2
+
2
3
# Passport Setup with NextJS
4
+
3
5
</div>
4
6
5
7
Learn how to initialize and configure the Immutable Passport SDK in a Next.js application with various configuration options. This example demonstrates different initialization patterns that affect UI overlays, scope settings, and logout behavior.
6
8
7
9
<divclass="button-component">
10
+
8
11
[View app on Github](https://github.com/immutable/ts-immutable-sdk/tree/main/examples/passport/setup-with-nextjs) <spanclass="button-component-arrow">→</span>
12
+
9
13
</div>
10
14
11
15
## Configuration Patterns Overview
@@ -23,12 +27,9 @@ This example demonstrates the following Passport configuration patterns:
23
27
24
28
### Default Configuration
25
29
26
-
**Description**: Standard initialization of the Passport SDK with default settings.
0 commit comments