Skip to content

Commit d6ab06c

Browse files
authored
Update README.md
1 parent acf1732 commit d6ab06c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,15 @@ const notification = await remote.sayHello.notify(["World"])
7979
// undefined
8080
```
8181

82+
##### auth
83+
84+
This method will set the `Authorization` header to `\`Bearer ${jwt}\``.
85+
86+
```typescript
87+
const greeting = await remote.sayHello.auth(jwt)(["World"])
88+
// Hello World
89+
```
90+
8291
##### batch
8392

8493
```typescript
@@ -91,15 +100,6 @@ const noise1 = await remote.animalsMakeNoise.batch([
91100
// [ "MIAAOW", "WUUUUFU WUUUUFU", "IAAAIAIA IAAAIAIA IAAAIAIA", "FIIIIIRE" ]
92101
```
93102

94-
##### auth
95-
96-
This method will set the `Authorization` header to `Bearer ${jwt}`.
97-
98-
```typescript
99-
const greeting = await remote.sayHello.auth(jwt)(["World"])
100-
// Hello World
101-
```
102-
103103
##### batch with different methods
104104

105105
Takes either a `batchObject` or a `batchArray` as argument and returns a

0 commit comments

Comments
 (0)