FabianLars / tauri-plugin-oauth

Apache License 2.0
79 stars 20 forks source link

Compatibility with the tauri v2.0.0-beta.0 permissions system #8

Closed elohmeier closed 5 months ago

elohmeier commented 6 months ago

When calling oauth.start the JS console shows the following error: oauth.start not allowed. Plugin did not define its manifest.

To fix this probably the permissions folder structure needs to be set up as in https://github.com/tauri-apps/tauri/tree/dev/examples/plugins/tauri-plugin-example/permissions.

Tauri Info output:

[✔] Environment
    - OS: Mac OS 14.2.1 X64
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.75.0 (82e1608df 2023-12-21)
    ✔ cargo: 1.75.0 (1d8b05cdd 2023-11-20)
    ✔ rustup: 1.26.0 (1980-01-01)
    ✔ Rust toolchain: stable-aarch64-apple-darwin (default)
    - node: 18.18.2
    - pnpm: 8.10.2
    - yarn: 1.22.19
    - npm: 10.2.3
    - bun: 1.0.13

[-] Packages
    - tauri [RUST]: 2.0.0-beta.2
    - tauri-build [RUST]: 2.0.0-beta.1
    - wry [RUST]: 0.35.2
    - tao [RUST]: 0.25.0
    - tauri-cli [RUST]: 2.0.0-beta.1
    - @tauri-apps/api [NPM]: 2.0.0-beta.0
    - @tauri-apps/cli [NPM]: 2.0.0-beta.1

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../build
    - devUrl: http://localhost:5173/
    - framework: Svelte
    - bundler: Vite