-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting error for Tauri Plugin Oauth handler function - Option::unwrap() on a None
value
#37
Comments
None
valueNone
value
I don't think anyone has reported this to me yet. Does this also happen if you completely remove the plugin from tauri.conf.json? I'll be unavailable until Saturday (or maybe Sunday, we'll see) so can't take a closer look until then. |
It only happens after I modify lib.rs to handle the oauth plugin, otherwise I have not come across it. No worries if you are unavailable. I will try to trouble shoot / work around, and will share if I find a solution. |
Just to be clear, with and without the plugin config in tauri.conf.json? |
Thanks for clarifying, I reinstalled and removed the plugin from tauri.conf.json which has resolved the error. What isn't working yet though is emitting the url from the window. If I open a Login window and open on onUrl listener, I don't receive anything. Am I doing something wrong? I followed the example: backend running on localhost:8000 I don't really understand why the url isn't being emitted. lib.rs
login.jsx
|
ok that's good but still something i have to look into since the config you had was technically correct.
This looks wrong. 1420 is likely the frontend port, not the plugin's port. You have to redirect to the plugin's port for the event to trigger. |
I'm struggling to integrate Oauth into Tauri 2.0. I'm following the examples for this plugin but I'm not sure what is going wrong. I'm getting a Option::unwrap() on a
None
value error that crashes my app whenever the rust function is invoked.Has anyone come across this before?
My backend is running on localhost:8000 and I have set the plugin ports 8005-8007
My setup
Cargo
src-tauri\capabilities\default.json
tauri.config.json
lib.rs
login.jsx
Error
The text was updated successfully, but these errors were encountered: