Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion templates/angular-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<app-button (click)="signIn()">Sign in</app-button>
<app-button (click)="signIn({ internet_identity: {} })">Sign in</app-button>
2 changes: 1 addition & 1 deletion templates/angular-starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion templates/astro-starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions templates/nextjs-example/src/components/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 <Button onClick={doSignIn}>Continue with Internet Identity</Button>;
return <Button onClick={signWithII}>Continue with Internet Identity</Button>;
};
4 changes: 2 additions & 2 deletions templates/nextjs-starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions templates/react-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
"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",
"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",
Expand Down
8 changes: 7 additions & 1 deletion templates/react-example/src/components/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,11 @@ import { signIn } from "@junobuild/core";
import { Button } from "./Button";

export const Login = () => {
return <Button onClick={signIn}>Sign in</Button>;
const signWithII = async () => {
await signIn({
internet_identity: {},
});
};

return <Button onClick={signWithII}>Sign in</Button>;
};
4 changes: 2 additions & 2 deletions templates/react-starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions templates/react-ts-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
"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",
"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",
Expand Down
8 changes: 7 additions & 1 deletion templates/react-ts-example/src/components/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,11 @@ import { FC } from "react";
import { Button } from "./Button";

export const Login: FC = () => {
return <Button onClick={signIn}>Sign in</Button>;
const signWithII = async () => {
await signIn({
internet_identity: {},
});
};

return <Button onClick={signWithII}>Sign in</Button>;
};
4 changes: 2 additions & 2 deletions templates/react-ts-starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions templates/sveltekit-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
},
Expand Down
8 changes: 5 additions & 3 deletions templates/sveltekit-example/src/lib/components/Login.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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: {},
});
};
</script>

<Button onclick={login}>Sign in</Button>
<Button onclick={signInWithII}>Sign in</Button>
4 changes: 2 additions & 2 deletions templates/sveltekit-starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -44,7 +44,7 @@
"cookie": "^0.7.0"
},
"dependencies": {
"@junobuild/core": "^1.1.1",
"@junobuild/core": "^2.0.0",
"@junobuild/functions": "^0.2.7"
}
}
4 changes: 2 additions & 2 deletions templates/vanilla-js-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
}
Expand Down
8 changes: 7 additions & 1 deletion templates/vanilla-js-example/src/components/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = `<button id="login"
Expand Down
4 changes: 2 additions & 2 deletions templates/vue-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
"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",
"pinia": "^3.0.3",
"vue": "^3.5.17",
"vue-router": "^4.5.1"
},
"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",
Expand Down
10 changes: 6 additions & 4 deletions templates/vue-example/src/components/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
import { signIn } from '@junobuild/core'
import Button from '@/components/Button.vue'

const login = async () => {
await signIn()
}
const signInWithII = async () => {
await signIn({
internet_identity: {},
});
};
</script>

<template>
<Button @click="login">Sign in</Button>
<Button @click="signInWithII">Sign in</Button>
</template>
4 changes: 2 additions & 2 deletions templates/vue-starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
"postinstall": "npm run postinstall:copy-auth"
},
"dependencies": {
"@junobuild/core": "^1.1.1",
"@junobuild/core": "^2.0.0",
"@junobuild/functions": "^0.2.7",
"pinia": "^3.0.3",
"vue": "^3.5.17",
"vue-router": "^4.5.1"
},
"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",
Expand Down
Loading