Is it possible to pass parameters from one application to another via Query String? Angular 2+

Asked

Viewed 62 times

-2

I have 2 applications Angulas, Application 1 and application 2. I need to pass via query string the token of application 1 to application 2. Does anyone have an example? I am lost and found nothing like it on the internet. Thank you

1 answer

0


Buddy, the ideal would be for you to have an intermediary between the two, the famous backend.. where it could be done in various ways, you could generate a simple token with this, install the lodash

import { random, times } from 'lodash';
    export function getRandomUID() {
      return times(20, () => random(35).toString(36)).join('');
    }

a way without backend, would you save in the cookie and pick this up via cookie as well, use the examples in npm above

Browser other questions tagged

You are not signed in. Login or sign up in order to post.