Skip to content

Commit a3c6ae9

Browse files
authored
fix refresh auth token (#899)
auth is a cell
1 parent 08e1271 commit a3c6ae9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

recipes/gmail.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,9 @@ const updateLimit = handler({
170170
state.limit.set(parseInt(detail?.value ?? "100") || 0);
171171
});
172172

173-
const refreshAuthToken = async (auth: Auth) => {
173+
const refreshAuthToken = async (auth: Cell<Auth>) => {
174174
const body = {
175-
refreshToken: auth.refreshToken,
175+
refreshToken: auth.get().refreshToken,
176176
};
177177

178178
console.log("refreshAuthToken", body);

0 commit comments

Comments
 (0)