# Get Parameter from URL

**URL:** <https://community.weweb.io/t/get-parameter-from-url/329>\
**Category:** Ask us anything\
**Tags:** authentication\
**Created:** [March 28, 2022, 5:32pm UTC](https://community.weweb.io/t/get-parameter-from-url/329 "2022-03-28T17:32:53Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [June 17, 2022, 9:15am UTC](https://community.weweb.io/t/get-parameter-from-url/329/22 "2022-06-17T09:15:13Z")

</div>

Ah no!!

You are right! My bad! The Login with magic link logs in the user but only returns the auth token. The user tab will remain empty.

You indeed need to bind to the auth token returned by Action 1. Will update the docs asap.

Apologies for the confusion!

 ![CleanShot 2022-06-17 at 11.11.18@2x](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/1X/7c7bf9e13f790d0d87acf0296b673f45b5fa7775.jpeg)

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/cedric/32/9809_2.png) [@Cedric](https://community.weweb.io/u/Cedric)\
**Post date:** [July 30, 2022, 6:00pm UTC](https://community.weweb.io/t/get-parameter-from-url/329/24 "2022-07-30T18:00:16Z")

</div>

@Joyce I’m having a similar issue to what Kevin mentioned. However because we are using passwordless authentication I’m not logging the user back in after aquiring the Auth token.  
So I have the token and I can get the user-info but I don’t see how to store these in the “Xano Auth” variables.  
Am I missing something or should I just create and store as new variables? Or update the Xano variables with JS

Thanks!

---

<div class="post-metadata">

**Author:** ![kevinwasie](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/kevinwasie/32/402_2.png) [@kevinwasie](https://community.weweb.io/u/kevinwasie)\
**Post date:** [July 30, 2022, 7:17pm UTC](https://community.weweb.io/t/get-parameter-from-url/329/25 "2022-07-30T19:17:49Z")

</div>

@cedric

You will need to use JavaScript to set the cookie and the accessToken in the Xano plugin if you are using that.

See this post:

> [@Login with authToken (MagicLink)](https://community.weweb.io/t/login-with-authtoken-magiclink/775):
>
> @aurelie @Joyce (Just moving this here to get into the right thread) I have an endpoint that returns an authToken. I’d like to login the user on WeWeb at that point. Currently, no action exists to login to WeWeb front end with an authToken. I have the following set up: variables[/\* xanoAuth accessToken \*/ 'f58 ... 4e1-accessToken'] = context.workflow['536 ... c8f6'].result['auth\_token'] window.vm.config.globalProperties.$cookie.setCookie("ww-auth-access-token", context.workflow['536 ... c8f6…

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/cedric/32/9809_2.png) [@Cedric](https://community.weweb.io/u/Cedric)\
**Post date:** [July 31, 2022, 3:04pm UTC](https://community.weweb.io/t/get-parameter-from-url/329/26 "2022-07-31T15:04:13Z")

</div>

Awesome, Thanks Kevin!

---

<div class="post-metadata">

**Author:** ![akshatgarg](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@akshatgarg](https://community.weweb.io/u/akshatgarg)\
**Post date:** [November 28, 2023, 11:33am UTC](https://community.weweb.io/t/get-parameter-from-url/329/27 "2023-11-28T11:33:28Z")

</div>

Hey @Quentin , I am trying to retrieve my token from url using weweb page params. However, since the token contains unsupported characters, the page is giving 404. Can you please help here, if I am missing something.

If not, how can I retrieve the token from url? (context: I use Xano Auth plugin and adding magic link for reset password)

cc: @Joyce

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [December 13, 2023, 4:07pm UTC](https://community.weweb.io/t/get-parameter-from-url/329/28 "2023-12-13T16:07:45Z")

</div>

Hi @akshatgarg 👋

Apologies for the late reply. Can you create a new topic that walks us through your use case?

It would help a lot to see:

- how things are setup in WeWeb and Xano,
- what happens when you click on the link in the email (a short screen recording would be awesome!)

---

<div class="post-metadata">

**Author:** ![akshatgarg](https://avatars.discourse-cdn.com/v4/letter/a/96bed5/32.png) [@akshatgarg](https://community.weweb.io/u/akshatgarg)\
**Post date:** [December 14, 2023, 6:50am UTC](https://community.weweb.io/t/get-parameter-from-url/329/29 "2023-12-14T06:50:57Z")

</div>

Hey Joyce, I did create a separate ticket and received resolution. Below is the link of the respective ticket:

> [@Extract magic token from url](https://community.weweb.io/t/extract-magic-token-from-url/5636):
>
> I am using Xano + Sendgrid for magic link for reset password flow. However, the one thing I am stuck at is extracting the token from url. I am trying the same by setting url parameter from weweb and then using the value of same parameter. But when I load the page with the token, it gives 404. What I am able to understand is that token has characters which are not acceptable as parameters in weweb. This is resulting in 404 as the same page is loading if I put any random acceptable ch…

[Previous page](https://community.weweb.io/t/get-parameter-from-url/329.md?page=1)
