# Verify signed message

**URL:** <https://forum.dfinity.org/t/verify-signed-message/7906>\
**Category:** Language Support\
**Created:** [October 14, 2021, 11:08am UTC](https://forum.dfinity.org/t/verify-signed-message/7906 "2021-10-14T11:08:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sparebytes](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/sparebytes/32/2574_2.png) [@sparebytes](https://forum.dfinity.org/u/sparebytes)\
**Post date:** [October 14, 2021, 11:08am UTC](https://forum.dfinity.org/t/verify-signed-message/7906/1 "2021-10-14T11:08:25Z")

</div>

Hi guys,  
a couple of things I need your help with if you can kindly provide it:

1. let’s say a user signs in using Internet Identity on my app. Can I use @dfinity/agent to sign a message in the front end and then in my centralised Node.js backend to verify the signature using a public key? Or how could I do this?

I see SignIdentity has a method sign… but not sure how to use. If you can be more explicit as I am a beginner…

1. Using Node.js, what SDK can I use to connect to IC to query or update? (I mean how can I do this as a logged in II from Node.js… in front end we use AuthClient and HttpAgent, right? what about the backend though? How do I get the client setup having logged in using public/private key instead of opening window to use provider for authentication?)

for example use:  
authClient.login with identity and the private key or something similar directly without getting the user through the login provider
