Skip to content

Commit 5776b39

Browse files
Merge pull request #792 from kohasummons/patch-1
docs: fix typo in recipes.mdx
2 parents e755816 + d28c749 commit 5776b39

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

v2/contribute/architecture/recipes.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@ A recipe is one independent auth module that can be consumed "as is". It can be
99

1010
For example, the session recipe can be used as is in an app to provide it session management, but it is also used by other recipes (like emailpassword / thirdparty / emailverification) in sign in / up APIs or to know if a user is logged in on the frontend.
1111

12-
Other examples of recieps are:
12+
Other examples of recipes are:
1313
- email password login (auth recipe)
1414
- social login (auth recipe)
1515
- email verification
1616
- password reset
1717

1818
Some recipes create users (auth recipes), whilst others work with already created users.
1919

20-
Recipes can also be combined together to build "super recipes". For example, we can combine emailpassword & thirdparty recipe to build thirdpartyemailpassword recipe. This way, we can provide the end user both options of Open ID connect / social login & email password login.
20+
Recipes can also be combined to build "super recipes". For example, we can combine emailpassword & thirdparty recipe to build thirdpartyemailpassword recipe. This way, we can provide the end user both options of Open ID connect / social login & email password login.
2121

2222
Recipes usually span across the frontend SDK, backend SDK and the core. In each of these layers, the recipe being used is identified by a recipe ID. For example, the session recipe's RID is `session`.
2323

2424
Different parts of SuperTokens identify recipes using different methods. For example:
25-
- For website navigation, th recipe ID is part of the query param of the URL
25+
- For website navigation, the recipe ID is part of the query param of the URL
2626
- The same website path can show different UIs based on the recipe being used. For example, `/auth?rid=emailpassword` will show the email password login, whereas `/auth?rid=thirdparty` will show the social login UI.
2727
- For API calls (backend or to the core), the recipe ID is a header in the request with the key `rid`.
28-
- The same API path & method can behave differently depending on the recipe being used. For example, the email password recipe can have a `/signin POST` API, which behaves differently that `/signin POST` of the magic links recipe. The backend SDK can know which behaviour to execute based on the `rid` header in the request.
28+
- The same API path & method can behave differently depending on the recipe being used. For example, the email password recipe can have a `/signin POST` API, which behaves differently that `/signin POST` of the magic links recipe. The backend SDK can know which behaviour to execute based on the `rid` header in the request.

0 commit comments

Comments
 (0)