Skip to content

Commit

Permalink
Merge pull request #742 from supertokens/next-issues
Browse files Browse the repository at this point in the history
Resolve issues in next docs
  • Loading branch information
rishabhpoddar authored Nov 7, 2023
2 parents dc869c3 + 0b4a426 commit 4f3a00e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 15 deletions.
5 changes: 2 additions & 3 deletions v2/emailpassword/nextjs/app-directory/init.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,11 @@ export const appInfo = {

## 4) Create a frontend config function

```tsx title="/config/frontendConfig.ts"
```tsx title="/config/frontend.ts"
import EmailPasswordReact from 'supertokens-auth-react/recipe/emailpassword'
import SessionReact from 'supertokens-auth-react/recipe/session'
// @ts-ignore
import { appInfo } from './appInfo'
import Router from 'next/navigation'
import { useRouter } from "next/navigation";
import { SuperTokensConfig } from 'supertokens-auth-react/lib/build/types'

Expand Down Expand Up @@ -153,7 +152,7 @@ export const frontendConfig = (): SuperTokensConfig => {
## 4) Create a frontend config function
```tsx title="/config/frontendConfig.ts"
```tsx title="/config/frontend.ts"
import EmailPasswordWebJs from 'supertokens-web-js/recipe/emailpassword'
import SessionWebJs from 'supertokens-web-js/recipe/session'
// @ts-ignore
Expand Down
5 changes: 2 additions & 3 deletions v2/passwordless/nextjs/app-directory/init.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,11 @@ export const appInfo = {

## 4) Create a frontend config function

```tsx title="/config/frontendConfig.ts"
```tsx title="/config/frontend.ts"
import PasswordlessReact from 'supertokens-auth-react/recipe/passwordless'
import SessionReact from 'supertokens-auth-react/recipe/session'
// @ts-ignore
import { appInfo } from './appInfo'
import Router from 'next/navigation'
import { SuperTokensConfig } from 'supertokens-auth-react/lib/build/types'
import { useRouter } from "next/navigation";

Expand Down Expand Up @@ -159,7 +158,7 @@ export const frontendConfig = (): SuperTokensConfig => {
## 4) Create a frontend config function
```tsx title="/config/frontendConfig.ts"
```tsx title="/config/frontend.ts"
import PasswordlessWebJs from 'supertokens-web-js/recipe/passwordless'
import SessionWebJs from 'supertokens-web-js/recipe/session'
// @ts-ignore
Expand Down
5 changes: 2 additions & 3 deletions v2/thirdparty/nextjs/app-directory/init.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,11 @@ export const appInfo = {

## 4) Create a frontend config function

```tsx title="/config/frontendConfig.ts"
```tsx title="/config/frontend.ts"
import ThirdPartyReact, {Google, Facebook} from 'supertokens-auth-react/recipe/thirdparty'
import SessionReact from 'supertokens-auth-react/recipe/session'
// @ts-ignore
import { appInfo } from './appInfo'
import Router from 'next/navigation'
import { SuperTokensConfig } from 'supertokens-auth-react/lib/build/types'
import { useRouter } from "next/navigation";

Expand Down Expand Up @@ -162,7 +161,7 @@ export const frontendConfig = (): SuperTokensConfig => {
## 4) Create a frontend config function
```tsx title="/config/frontendConfig.ts"
```tsx title="/config/frontend.ts"
import ThirdPartyWebJs from 'supertokens-web-js/recipe/thirdparty'
import SessionWebJs from 'supertokens-web-js/recipe/session'
// @ts-ignore
Expand Down
5 changes: 2 additions & 3 deletions v2/thirdpartyemailpassword/nextjs/app-directory/init.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,11 @@ export const appInfo = {

## 4) Create a frontend config function

```tsx title="/config/frontendConfig.ts"
```tsx title="/config/frontend.ts"
import ThirdPartyEmailPasswordReact from 'supertokens-auth-react/recipe/thirdpartyemailpassword'
import SessionReact from 'supertokens-auth-react/recipe/session'
// @ts-ignore
import { appInfo } from './appInfo'
import Router from 'next/navigation'
import { useRouter } from "next/navigation";
import { SuperTokensConfig } from 'supertokens-auth-react/lib/build/types'

Expand Down Expand Up @@ -162,7 +161,7 @@ export const frontendConfig = (): SuperTokensConfig => {
## 4) Create a frontend config function
```tsx title="/config/frontendConfig.ts"
```tsx title="/config/frontend.ts"
import ThirdPartyEmailPasswordWebJs from 'supertokens-web-js/recipe/thirdpartyemailpassword'
import SessionWebJs from 'supertokens-web-js/recipe/session'
// @ts-ignore
Expand Down
5 changes: 2 additions & 3 deletions v2/thirdpartypasswordless/nextjs/app-directory/init.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,11 @@ export const appInfo = {

## 4) Create a frontend config function

```tsx title="/config/frontendConfig.ts"
```tsx title="/config/frontend.ts"
import ThirdPartyPasswordlessReact from 'supertokens-auth-react/recipe/thirdpartypasswordless'
import SessionReact from 'supertokens-auth-react/recipe/session'
// @ts-ignore
import { appInfo } from './appInfo'
import Router from 'next/navigation'
import { SuperTokensConfig } from 'supertokens-auth-react/lib/build/types'
import { useRouter } from "next/navigation";

Expand Down Expand Up @@ -159,7 +158,7 @@ export const frontendConfig = (): SuperTokensConfig => {
## 4) Create a frontend config function
```tsx title="/config/frontendConfig.ts"
```tsx title="/config/frontend.ts"
import ThirdPartyPasswordlessWebJs from 'supertokens-web-js/recipe/thirdpartypasswordless'
import SessionWebJs from 'supertokens-web-js/recipe/session'
// @ts-ignore
Expand Down

0 comments on commit 4f3a00e

Please sign in to comment.