diff --git a/templates/angular-example/package.json b/templates/angular-example/package.json
index a5058a87..8872ae4e 100644
--- a/templates/angular-example/package.json
+++ b/templates/angular-example/package.json
@@ -22,7 +22,7 @@
"@angular/platform-browser": "^20.0.5",
"@angular/platform-browser-dynamic": "^20.0.5",
"@angular/router": "^20.0.5",
- "@junobuild/core": "^1.1.1",
+ "@junobuild/core": "^2.0.0",
"@junobuild/functions": "^0.2.7",
"nanoid": "^5.1.5",
"rxjs": "~7.8.2",
diff --git a/templates/angular-example/src/app/components/login/login.component.html b/templates/angular-example/src/app/components/login/login.component.html
index c33c6621..4f0a388a 100644
--- a/templates/angular-example/src/app/components/login/login.component.html
+++ b/templates/angular-example/src/app/components/login/login.component.html
@@ -1 +1 @@
-Sign in
+Sign in
diff --git a/templates/angular-starter/package.json b/templates/angular-starter/package.json
index bb5ad018..a91a7b1c 100644
--- a/templates/angular-starter/package.json
+++ b/templates/angular-starter/package.json
@@ -22,7 +22,7 @@
"@angular/platform-browser": "^20.0.5",
"@angular/platform-browser-dynamic": "^20.0.5",
"@angular/router": "^20.0.5",
- "@junobuild/core": "^1.1.1",
+ "@junobuild/core": "^2.0.0",
"@junobuild/functions": "^0.2.7",
"rxjs": "~7.8.2",
"tslib": "^2.8.1",
diff --git a/templates/astro-starter/package.json b/templates/astro-starter/package.json
index 1d663ff9..690c5079 100644
--- a/templates/astro-starter/package.json
+++ b/templates/astro-starter/package.json
@@ -15,7 +15,7 @@
"@astrojs/mdx": "^4.3.0",
"@astrojs/rss": "^4.0.12",
"@astrojs/sitemap": "^3.4.1",
- "@junobuild/config": "^2.0.0",
+ "@junobuild/config": "^2.1.0",
"@junobuild/vite-plugin": "^4.1.4",
"@tailwindcss/vite": "^4.1.10",
"astro": "^5.10.1",
diff --git a/templates/nextjs-example/src/components/login.tsx b/templates/nextjs-example/src/components/login.tsx
index 320428bd..7d447eda 100644
--- a/templates/nextjs-example/src/components/login.tsx
+++ b/templates/nextjs-example/src/components/login.tsx
@@ -2,11 +2,11 @@ import { Button } from "@/components/button";
import { signIn } from "@junobuild/core";
export const Login = () => {
- const doSignIn = async () => {
+ const signWithII = async () => {
await signIn({
internet_identity: {},
});
};
- return ;
+ return ;
};
diff --git a/templates/nextjs-starter/package.json b/templates/nextjs-starter/package.json
index ce67bcb6..5f43e55a 100644
--- a/templates/nextjs-starter/package.json
+++ b/templates/nextjs-starter/package.json
@@ -12,14 +12,14 @@
"postinstall": "npm run postinstall:copy-auth"
},
"dependencies": {
- "@junobuild/core": "^1.1.1",
+ "@junobuild/core": "^2.0.0",
"@junobuild/functions": "^0.2.7",
"next": "15.3.4",
"react": "19.1.0",
"react-dom": "19.1.0"
},
"devDependencies": {
- "@junobuild/config": "^2.0.0",
+ "@junobuild/config": "^2.1.0",
"@junobuild/nextjs-plugin": "^4.1.4",
"@tailwindcss/postcss": "^4.1.10",
"@types/node": "^24",
diff --git a/templates/react-example/package.json b/templates/react-example/package.json
index ddbd9aea..81912361 100644
--- a/templates/react-example/package.json
+++ b/templates/react-example/package.json
@@ -13,7 +13,7 @@
"postinstall": "npm run postinstall:copy-auth"
},
"dependencies": {
- "@junobuild/core": "^1.1.1",
+ "@junobuild/core": "^2.0.0",
"@junobuild/functions": "^0.2.7",
"nanoid": "^5.1.5",
"react": "19.1.0",
@@ -21,7 +21,7 @@
},
"devDependencies": {
"@eslint/js": "^9.29.0",
- "@junobuild/config": "^2.0.0",
+ "@junobuild/config": "^2.1.0",
"@junobuild/vite-plugin": "^4.1.4",
"@tailwindcss/postcss": "^4.1.10",
"@tailwindcss/vite": "^4.1.10",
diff --git a/templates/react-example/src/components/Login.jsx b/templates/react-example/src/components/Login.jsx
index e300ff05..892719ef 100644
--- a/templates/react-example/src/components/Login.jsx
+++ b/templates/react-example/src/components/Login.jsx
@@ -2,5 +2,11 @@ import { signIn } from "@junobuild/core";
import { Button } from "./Button";
export const Login = () => {
- return ;
+ const signWithII = async () => {
+ await signIn({
+ internet_identity: {},
+ });
+ };
+
+ return ;
};
diff --git a/templates/react-starter/package.json b/templates/react-starter/package.json
index fb7c4caa..a5aabf17 100644
--- a/templates/react-starter/package.json
+++ b/templates/react-starter/package.json
@@ -13,14 +13,14 @@
"postinstall": "npm run postinstall:copy-auth"
},
"dependencies": {
- "@junobuild/core": "^1.1.1",
+ "@junobuild/core": "^2.0.0",
"@junobuild/functions": "^0.2.7",
"react": "19.1.0",
"react-dom": "19.1.0"
},
"devDependencies": {
"@eslint/js": "^9.29.0",
- "@junobuild/config": "^2.0.0",
+ "@junobuild/config": "^2.1.0",
"@junobuild/vite-plugin": "^4.1.4",
"@tailwindcss/postcss": "^4.1.10",
"@tailwindcss/vite": "^4.1.10",
diff --git a/templates/react-ts-example/package.json b/templates/react-ts-example/package.json
index 7cfbf9eb..1c2a5591 100644
--- a/templates/react-ts-example/package.json
+++ b/templates/react-ts-example/package.json
@@ -13,7 +13,7 @@
"postinstall": "npm run postinstall:copy-auth"
},
"dependencies": {
- "@junobuild/core": "^1.1.1",
+ "@junobuild/core": "^2.0.0",
"@junobuild/functions": "^0.2.7",
"nanoid": "^5.1.5",
"react": "19.1.0",
@@ -21,7 +21,7 @@
},
"devDependencies": {
"@eslint/js": "^9.29.0",
- "@junobuild/config": "^2.0.0",
+ "@junobuild/config": "^2.1.0",
"@junobuild/vite-plugin": "^4.1.4",
"@tailwindcss/postcss": "^4.1.10",
"@tailwindcss/vite": "^4.1.10",
diff --git a/templates/react-ts-example/src/components/Login.tsx b/templates/react-ts-example/src/components/Login.tsx
index 336529b6..d27ef64b 100644
--- a/templates/react-ts-example/src/components/Login.tsx
+++ b/templates/react-ts-example/src/components/Login.tsx
@@ -3,5 +3,11 @@ import { FC } from "react";
import { Button } from "./Button";
export const Login: FC = () => {
- return ;
+ const signWithII = async () => {
+ await signIn({
+ internet_identity: {},
+ });
+ };
+
+ return ;
};
diff --git a/templates/react-ts-starter/package.json b/templates/react-ts-starter/package.json
index 59f47bd0..7e09cb0b 100644
--- a/templates/react-ts-starter/package.json
+++ b/templates/react-ts-starter/package.json
@@ -13,14 +13,14 @@
"postinstall": "npm run postinstall:copy-auth"
},
"dependencies": {
- "@junobuild/core": "^1.1.1",
+ "@junobuild/core": "^2.0.0",
"@junobuild/functions": "^0.2.7",
"react": "19.1.0",
"react-dom": "19.1.0"
},
"devDependencies": {
"@eslint/js": "^9.29.0",
- "@junobuild/config": "^2.0.0",
+ "@junobuild/config": "^2.1.0",
"@junobuild/vite-plugin": "^4.1.4",
"@tailwindcss/postcss": "^4.1.10",
"@tailwindcss/vite": "^4.1.10",
diff --git a/templates/sveltekit-example/package.json b/templates/sveltekit-example/package.json
index 667447b6..b4b43d11 100644
--- a/templates/sveltekit-example/package.json
+++ b/templates/sveltekit-example/package.json
@@ -15,7 +15,7 @@
"postinstall": "npm run postinstall:copy-auth"
},
"devDependencies": {
- "@junobuild/config": "^2.0.0",
+ "@junobuild/config": "^2.1.0",
"@junobuild/vite-plugin": "^4.1.4",
"@sveltejs/adapter-static": "^3.0.8",
"@sveltejs/kit": "^2.22.1",
@@ -41,7 +41,7 @@
},
"type": "module",
"dependencies": {
- "@junobuild/core": "^1.1.1",
+ "@junobuild/core": "^2.0.0",
"@junobuild/functions": "^0.2.7",
"nanoid": "^5.1.5"
},
diff --git a/templates/sveltekit-example/src/lib/components/Login.svelte b/templates/sveltekit-example/src/lib/components/Login.svelte
index ae1b4ce7..d259a5c6 100644
--- a/templates/sveltekit-example/src/lib/components/Login.svelte
+++ b/templates/sveltekit-example/src/lib/components/Login.svelte
@@ -2,9 +2,11 @@
import Button from '$lib/components/Button.svelte';
import { signIn } from '@junobuild/core';
- const login = async () => {
- await signIn();
+ const signInWithII = async () => {
+ await signIn({
+ internet_identity: {},
+ });
};
-
+
diff --git a/templates/sveltekit-starter/package.json b/templates/sveltekit-starter/package.json
index f726d00d..bcac21d5 100644
--- a/templates/sveltekit-starter/package.json
+++ b/templates/sveltekit-starter/package.json
@@ -15,7 +15,7 @@
"postinstall": "npm run postinstall:copy-auth"
},
"devDependencies": {
- "@junobuild/config": "^2.0.0",
+ "@junobuild/config": "^2.1.0",
"@junobuild/vite-plugin": "^4.1.4",
"@sveltejs/adapter-static": "^3.0.8",
"@sveltejs/kit": "^2.22.1",
@@ -44,7 +44,7 @@
"cookie": "^0.7.0"
},
"dependencies": {
- "@junobuild/core": "^1.1.1",
+ "@junobuild/core": "^2.0.0",
"@junobuild/functions": "^0.2.7"
}
}
diff --git a/templates/vanilla-js-example/package.json b/templates/vanilla-js-example/package.json
index 30dee065..65ff8b0b 100644
--- a/templates/vanilla-js-example/package.json
+++ b/templates/vanilla-js-example/package.json
@@ -12,7 +12,7 @@
"postinstall": "npm run postinstall:copy-auth"
},
"devDependencies": {
- "@junobuild/config": "^2.0.0",
+ "@junobuild/config": "^2.1.0",
"@junobuild/vite-plugin": "^4.1.4",
"@tailwindcss/postcss": "^4.1.10",
"@tailwindcss/vite": "^4.1.10",
@@ -23,7 +23,7 @@
"vite-plugin-node-polyfills": "^0.24.0"
},
"dependencies": {
- "@junobuild/core": "^1.1.1",
+ "@junobuild/core": "^2.0.0",
"@junobuild/functions": "^0.2.7",
"nanoid": "^5.1.5"
}
diff --git a/templates/vanilla-js-example/src/components/login.js b/templates/vanilla-js-example/src/components/login.js
index c3a5c75c..d14c6ab7 100644
--- a/templates/vanilla-js-example/src/components/login.js
+++ b/templates/vanilla-js-example/src/components/login.js
@@ -2,10 +2,16 @@ import { signIn } from "@junobuild/core";
import { addEventClick } from "../utils/utils";
export const renderLogin = (app) => {
+ const signInWithII = async () => {
+ await signIn({
+ internet_identity: {},
+ });
+ };
+
addEventClick({
target: app,
selector: "#login",
- fn: signIn,
+ fn: signInWithII,
});
app.innerHTML = `