Pubsub Authentication For Client Side Apps

So the only way I could do this is making the plugin access a server and handling all of that in the server? there’s no way the user authenticates automatically, even with another method that is not the implicit code flow?