V
V
Vlad Volodko2019-10-02 15:07:47
JavaScript
Vlad Volodko, 2019-10-02 15:07:47

How to create a token for a widget?

Hello. I made an application on vuejs and laravel that communicates with each other via API. But now there is a demand for a multi-user web widget that people can embed on their site. It is necessary that a person could insert the widget code on the site. For example, how is it done by jivosite, vk, facebook, etc.
Actually, the question is more in tokens, how to create them for the client and how to store them?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
grinat, 2019-10-02
@grinat

md5(uniqid(rand(), true))
Store in db. But why do you need a token?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question