angular - Is it ok to show $uid, generated by Firebase Authentication? -


i have firebase authentication enabled , after registering new user, create other data tables , distinguish them $uid, generated firebase. $uid being displayed in browser address bar, like:

http://localhost:4200/accounts/6wvgabehmrbgyxj0inacjwhmkif2 

is safe enough use in way (and normal practise)?

it safe put uid in url.

if go stackoverflow account example, numbers see before name user id. account's url:

https://stackoverflow.com/users/8558489/user370486

i can see user id of 8558489 in url before shows username, can't malicious information. websites facebook use username in url, youtube uses user id, it's prefer. rather see username in url because it's more meaningful when @ it's you! hope helps.

edit:

it arguable may less secure have username in url. if application allows username same password, or if username allowed contained in password, makes easy bruteforce attack. uid way go.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -